Canvas Clock Demo

This is a script that creates a Canvas-clock, and assuming your browser supports all mouse event handlers, you should be able to move this around and resize it. However, I've only got IE and Firefox 2 to work with, and IE doesn't do Canvas and Firefox 2 doesn't have all required listeners for a Canvas object. I've been told it works in Firefox 3, but I don't like Firefox 3 enough to upgrade. I'm a modern Luddite. :P

Anyways, this script uses both Timer class and Clock class. It generates all the positions of the clock first, so that each second is very defined, not sweeping. The clock does look very nice at larger sizes, but the clock hands do not get proportionally larger as they are always one pixel.