Dance Animation
Lab 03 · A six-frame flipbook animation in p5.js.
Notes
Watch the robot dance!
- Click the canvas — the bottom-left dancer moves to its next pose, the music switches to the next track (3), and the background changes to a random color.
- Space — pauses the dance animation; press again to resume.
- S — makes every dancer twice as fast; press again to go back to normal speed.
- N — adds another dancer to the right, up to 5 total.
- 1 — bonus: freezes only the first robot; everyone else keeps dancing. Press again to let it rejoin.
The git repo: Lab03