Learning Processing: a beginner's guide to programming images, animation, and interaction. D Shiffman. Morgan Kaufmann, 2009.
https://dl.acm.org/doi/pdf/10.5555/1481360
https://processing.org/ Processing Software
I spent too many hours fighting with the details, trying to get the ellipse to fall. Gravity does not like me this week, which is ironic since it's the first thing I got working last week.
The two arrays are working- though I did just realize the color is now black, rather than one of the colors in the array(remember to troubleshoot this again later). One array holds the selection for the randomized colors, the other generates and stores the golf-balls. I may need to use an array for the point counter, and make the golf-balls a class instead. The putting hole was a group made with PShape; following the mouse along the x axis and, eventually, destroying objects on contact and increasing a counter. I'm thinking about having the gold balls expand as they get bigger, or adding details to show rotation and add depth to the final build.