We wanted to use Processing to understand a bit more about what makes this TNTTearDrop shape 'tick.' It's made using parametric equations:
x = a * cos(t)
y = b * sin(t) * sinm(t/2)
The key players in the equations are:
- t, time
- a and b: scale factors on the x and y variables respectively
- m, a power on a sine factor
The sliders in the control console allow you to see the effect of a, b and m on the figure. The 'hue' slider lets you choose the 'fill' color of the shape.
Mobile Users!
If you load an app in portrait mode, the canvas might not be the correct size. If that happens, rotate it to landscape, then back again and that action might take care of it.
