← Back to Purpose & Assignments

A9 — Animation (Canvas Bouncer)

Timer-based animation • bounded motion • click interaction • optional path-follow

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