Week 3: Oscillations & Rotation

This week I experimented with making spirals, manipulating them with concepts from Fourier transforms, and using oscillations.  I began with a simple sketch where I used polar coordinates to build a spiral (Figure 1). 

Figure 1

I then manipulated the radius of the spiral using concepts from this 3blue1brown video.  Figures 2&3 show patterns that I developed using these concepts.  You can view these examples here and find the code here.

Figure 2

Figure 3

At this point I changed gears and began to focus on oscillations.  I saw this post on the creative coding subReddit and was inspired to combine this idea with oscillating symbol that appears on the apple watch when you use the breathe application.  I began by creating a simple oscillating circle that grows and shrinks (Figure 4).

Figure 4

I then added an angular acceleration to this object (Figure 5).

Figure 5

From here I created a class for each square and added many squares to the canvas.  Each square had a unique acceleration and amplitude (Figure 6).

Finally I added a gradient to the canvas using this code as a reference. The final result reminds me of a star in the night sky (Figure 7).  You can view this example here and find the code here