block by bricof af78d8d38d48d8f00f253a0e8947ea21

Path-Line Reflection

Full Screen

This example builds on the previous Path-Line Intersection block by picking the path-line intersection that is closest to the line’s starting point, computing the angle of intersection and the angle of reflection, and then drawing a reflection line. See the Bottled Gas Animation block for an example that uses this functionality.

index.html