Clock

Clock

Click here to view the clock

Drawing upon this site for inspiration, I decided that the idea was sound, but it needed a more aesthetically-pleasing implementation. My brother helped me decide how to organize the seconds in a minute (an 8x8 grid with the corners removed), and I played around with the rest of the layout until it just made sense.

The code uses an html5 canvas with javascript, to display the data. I calculate where each second's pixel should go, and update the pixels of the canvas data directly.