Concept:
For this assignment, I wanted to make a design that moves and looks alive, as compared to my static design for the first assignment. I used nested loops to draw a grid of circles, and each circle changes size and color using a wave. I had to learn how to use the wave and the map functions so I could control how the circles grow and change colors, which was a little tricky at first, but really fun to figure out. The loops made it so much easier to draw many circles without writing a lot of code.
Code Highlight:
I’m really proud of how I made the circles pulse and change color using the wave and map functions. Even though it’s just a few lines of code, it completely changes how the artwork feels. Figuring out how to use the wave and map together was really challenging at first. I had to do a lot of trial and error, watch some YouTube videos, but it was satisfying to see it finally work.
let wave = sin((frameCount * 0.07) + (x + y) * 0.05); // simple wave let size = map(wave, -1, 1, 10, spacing); // circle size changes with wave let colorValue = map(wave, -1, 1, 50, 255); // color changes with wave fill(colorValue, 170, 355);