When programming a basic bouncing ball in Processing, at first it's best not to think of it as a "ball", but as a circle. The circle has a location (x,y), a radius, and a velocity (x,y). When the location and radius add up to a number greater than the size of your window, the velocity simply reverses. Here's a quick example.
I found this tutorial very helpful though. thank you.
wellsjohnston 1 year ago
"my ellipse will now be...an elongated oval"
which is an ellipse. lol
wellsjohnston 1 year ago