Lissajous Java Applets

LissaApplet is a Java Applet that draws so-called Lissajous Curves, which are defined as follows:

x(t) = a * cos(f1 * t)
y(t) = b * cos(f2 * t + d)

The following two examples take their parameters out of the HTML code:

 x(t) = cos(t)
 y(t) = cos(2t + π/4)
 x(t) = 5 * cos(3t)
 y(t) = 4 * cos(5t + π/2)

GuiLissaApplet allows you to enter your own parameters and then passes them over to an embedded LissaApplet for drawing the curve:

The source: