Thursday, 24 January 2013

Recursive construction of a Sierpinski carpet by using the HTML5 canvas element and JavaScript

Yesterday I posted an page which shows how to draw a Sierpinski triangle with the HTML5 canvas element. Besides this Mr. Sierpiński also was a fractal carpet knotter. Here is my version of the Sierpinski carpet: http://www.jakob.at/html5/sierpinskicarpet.html

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