Homework 4: Loops and Conditionals

Esther Barnett
Feb 11, 2021

My codepen:

I incorporated:

→ A circle grid with nested loops

→ mouseX and mouseY to paint a smiley onto the canvas in various locations

→ created a button that changes its background color when the mouse hovers over it

→ used mouseIsPressed to change both the colors of the grid circles and make the smiley face appear each time the mouse is pressed