Spirographs
Playing with the canvas a little tonight, I pulled in and modified some of the spirograph code from the Mozilla developer documentation. I was interested in simply getting smooth animation out of canvas, and it turns out it is totally straightforward. Check out each of the variants below, and click to view a movie…
It’s nice when your code not only works right away, but also pleasantly surprises you with the results. Javascript really is an enjoyable language once separated from the DOM mess, and the canvas provides a nice, light, and increasingly cross platfrom space. I predict this sort of browser based work will soon be an important medium for dynamic graphics code, similar to how processing became so dominant a few years back.


