This week we learned a new way to interpret shapes -- by using polar coordinates. Here's what I did: a looping animation for any shapes written in polar functions. Code is hosted on p5 Editor. It looks like this:
To make this 3D perspective, I used WEBGL mode for the canvas. And to make the animation, I displayed 50 shapes from top to bottom in Z axis, while connecting the radius of the shape to its Z coordinate. When the Z coordinates of those shapes changed according to the frameCount, it created this looping animation.
The shape in XY plane can be written as whatever you want to. The core code is here. To change the shape of the animation, just change the place of cos(j*2) to whatever polar functions you like.