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
This week I practiced calling independent functions within draw( ). I mostly struggled with the logic that moved my objects. I don't think the logic I was using will work with the available syntax. I'll have to change the ideas for the game I had in mind.
The draw function sets up the background and instructions, then calls the target( ), sand( ) and reset( ) functions. On startup a target( ) begins randomly moving around the screen. As of now, every iteration of the target stays on screen, making it look like a line. Moving the background out of setup( ) will solve this, but then erases the previous iterations of sand. I'll fight out a solution later.
On left-click, sand( ) will generate ellipses of random size(within parameters) and hue(blue and green). On right-click, reset( ) will remove the sand. I need to add a line to move the target position back to start.