Recreation of “Double Post-Image” by Julio Le Parc

In this assignment, I chose to recreate Julio Le Parc’s artwork “Double Post-Image” (image is the bottom one). For my recreation (the image at the top), instead of just removing a couple of lines and changing the colors, I also decided to have the rectangles gradually go down in size in order for it to form a triangle which I thought would look pretty neat and make it look more interesting.

Here’s the code: https://editor.p5js.org/Sawyer711/sketches/_cH48Bait