Functions + Loops HW
Tim Szetela Inspired Works 2/19/21
So my original inspiration for the piece came from Szetela’s “Spiral Bloom” on his instagram page. I figured out he was using rectangles repeated with the rotation speed offset per shape so that they are all spinning at their own respective speed. They are also just outlines of the rectangles with rounded corners. I figured he made the shapes with a for loop, so I made a similar function to draw the shapes as increasing in size. I ended up not quite getting it to spin in the center of the rectangle itself, but rather it spins from the corner of the rectangle around the center of the canvas. To offset the rotation speed, I had the speed be affected by the value of i in the for loop so that the ones in the center move faster. For the second variation I added a function to make it so that the fill of the rectangles changes based on if it has an even or odd value. The last variation switches the rectangle for an ellipse function and adds some delay to the background so that there is that delayed sort of gradient effect with the motion.