siteIcon

Tech Novice Tools

JSGS: Processing

burgerIcon
spiral

JSGrafix Sandbox (JSGS)

TNT Anim-TearDrop

About this app

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.

Last update: 02/04/20


Controls:

Shape Controls:

m:

a:

b:

Fill Hue: