Lab 02 — Bouncing Smiley Faces
An interactive animation created with p5.js.
This sketch features two bouncing circles that move around the canvas. The first circle grows and shrinks, changes to a random color when it hits the top or bottom wall, and becomes a yellow smiley face when it meets the other smiley face.
Click the canvas to change the first circle's direction. Press the spacebar to pause it and press "R" to resume.
View the code on GitHub