HTML5 Test

I was browsing the web yesterday, and I found that, with a simple yet interesting pattern. I spent a few minutes to implement my interpretation of the piece using the technologies of the 21st century, that is, HTML5 and its canvas tag.

The code is actually really simple: draws two circles, a translation, a scale transform and recursion does the magic.

You can go here to try, and clicking on the result will give you another render. It works in Firefox and Chrome, not in IE (I wonder why, *wink wink*), and other modern browsers should work as well. It might take a couple of seconds depending on your window size to fill the screen.

Thu, 02 Feb 2012 22:39 Posted in

If you liked this article you can add me to Twitter

Comment HTML5 Test


RSS