The TNTHeart Library entry has 5 parameters that influence its shape. This app lets us explore the changes as those parameters are changed.
x = a*sin3(t)
y = b*cos(t) + c*cos(2t) + d*cos(3t) + e*cos(4t)
Suggested Coefficients for a 'Good Heart':
a: 16
b: 13
c: -5
d: -2
e: -1
The sliders in the control console allow you to see the effect of variables a-e on the shape of the heart. The 'hue' slider lets you choose the heart's fill color.
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.
