Circle Grid

Objective: Play around with randomness and arrays.

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.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s