It simulates a pendulum filled with sand leaving behind a line. The lines are zig zaggy because of the system I am using. Because I can't instantly update the X and the Y position at the same time (gliding isn't instant) the pen draws the X change and then the Y. Also there is no friction so enventually you get this weird rectangle. P.S. This is a fifteen minute project so don't expect too much. Edit: It erases the pattern every time you press the green flag, but if you want to erase in the middle hit the space bar. Also you can drag the pendulum around with your mouse. To get a hold of it press the stop button.