This project was inspired by disco lights and paparazzi cameras flashing. I tried to mimic the effect these objects create by animating a simple grid of circles. I selected three color palettes using the Coolors website.
Within the draw loop, circles are drawn and randomly assigned a color within a particular palette. When the mouse is pressed, the color palette changes. I store all my colors as strings of hex code within a 2-dimensional array to simplify the randomization of color in my code.