The Lissajous curve is defined by the parametric equations: x = sin (at + c) y = sin (bt) Change a, b, c to see the variety of patterns that can be made. (For best results, click the green flag after changing the values)
http://en.wikipedia.org/wiki/Lissajous_curve