Lab 05 — Gravity Ball
Using classes and objects in p5.js.
Notes
I did the pulse and gravity ideas from the lab instructions. From the bonus, I added a third method to wrap and used mousePressed(). When you hold the mouse down, the balls fall and bounce. When you let go, they go back to jittering where they are, since gravity stops being applied. Since fall() clamps the balls at the bottom, wrapping mostly shows up on the left, right and top edges.