DOM – Optical Illusion

I was inspired by this giph I found on giphy and wanted to re-create this optical illusion for this week’s assignemnt. It was a really challenging because as the squares rotate the background changes as well from black to white and the border is removed. It is interesting that we are starting to explore the P5js libraries. My issue with this assignment was that every time the color changes sometimes it doesn’t still have the same effect and I’m not sure why.

via GIPHY

Code: https://alpha.editor.p5js.org/

Leave a Reply

Your email address will not be published. Required fields are marked *