Wednesday, 23 January 2013

Recursive construction of a Sierpinski triangle by using plain HTML5 + JavaScript

Here's a little page I wrote which demonstrates how to construct a Sierpinski triangle with JavaScript and the HTML5 canvas element. You can interactively modify the recursion depth between 0 and 10. http://www.jakob.at/html5/sierpinski.html

No comments: