Optical Illusion  

  
2023


This assignment offered the challenge of creating a visual illusion using p5.js. 

Using nested for-loops, I wanted to create an aliasing effect by rotating two sets of varying-size squares in opposite directions. Not satisfied with the result, I played around with the alpha value of the background so that the squares left traces each time the background was drawn. By oscillating the alpha value, I achieved a result I was happy with. The HSB color values of each set of squares are set at opposite ends of the spectrum and vary at the same rate to keep it visually interesting.

       

© 2025 Sara Celidonio