Ready. Click the canvas to make the object react (direction + sparkle burst).
A square object moves and bounces within the canvas bounds; on click it reacts with a color change, new direction, and a sparkle burst. Optional mode follows a calculated path.
Bounce mode: reflects off edges
Path mode: parametric (Lissajous-like)
Click: burst + randomize