Phil for Humanity Phil for Humanity
A Guide for the Survival of Humankind and Helping the World, Society, and Yourself.

Sierpinski Triangle Using HTML 5

I wanted to learn how to program using the canvas tag in HTML 5 and Javascript, so I implemented the drawing of this Sierpinski Triangle.

Believe it or not, the design below is not a picture or a static image. Rather, it is randomly drawn each time this webpage is loaded using only a few mathematically rules. It may take a while to render if you are on a slow computer. You may need to reload the page if the color is too light to be seen properly on the white background. Feel free to look at my source code.

Your browser does not support HTML 5. Please upgrade.

by Phil for Humanity
on 06/10/2010

Related Articles
 » Undefined and Imaginary Numbers: Divide by Zerp
 » The Problems with the Batch Programming Language
 » The Top 6 Reasons Why the Tax Rebate Won't Stimulate the Economy