or this assignment we were told to go back and use a previous assignment but just to add in functionality that could change the color of something in it based on if the user clicks on their mouse or not.
I ended up revisiting the p5.js assignment 1 and added a new function mouseClicked. When the mouse is clicked it randomly changes the fill color of 4 of the lines of lines on the screen.
This assignment required me to add 3 lines of code to what I already had. 2 lines for the new function, and 1 to declare a new variable to hold the random fill color.