Click to draw the ball toward you. Press the space bar to clear trace lines. The ball is attracted to the mouse with a force directly proportional to distance squared. Hold the mouse down constantly and see if you can get it to draw a Lissajous figure.
The code for the velocity while the mouse is clicked is: xvelocity = xvelocity - (bx-mousex)*(dist)/50000 yvelocity = xvelocity - (by-mousey)*(dist)/50000-.2

Clear trace(Space)
Toggle Gravity(g)
Change mode(1,2,3)

Mode 1: Distance squared mode
Mode 2: Distance mode (ellipse mode)
Mode 3: Rounding error mode (Lissajous mode)

Please, Tell Me what you think!