p5 Sketch | Week 2

p5 Sketch | Week 2

Create a sketch that includes (all of these). One element controlled by the mouse. One element that changes over time, independent of the mouse. 1 element that is different every time you run the sketch.


I'm looking into whether p5.js can automatically create a swatch. I'm going to use this as the element in my sketch that changes each time the program is run.

I improvised this piece with code until I got a version working.

Final Version