Monthly Archives: January 2024

NOC W01 – Glacier

This is inspired by the in-class activity’s code (NOC Exercise 1.2 Transformations by MOQN). After modifying the value of the angle turned each time and the position of the center of the rotation, I tried making the angle change only one degree at a time and the center the position of the mouse. This way, I was able to “draw” images with the spinning rectangle and create spontaneous images with it. 

Here is a video of the running code:

Design wise , I tried to use fill() for the rectangle, adding other shapes and experimenting with different colors as shown in the pictures below, but they all turn out to be more rigid and less aesthetically pleasing, and I eventually returned to where I had started and used a cool blue, as I find it complements the patterns it creates and has a resemblance to the texture of glaciers.

Here is the link to the code: https://editor.p5js.org/Melanie_Quan/sketches/MdAohxKdw