This program draws lovely spirals on the screen as the mouse is moved. It demonstrates the use of the 'double' primitive as well as the use of trigonometric functions from the Math class.
Click below to download the source files for Spiral.