Pure JS Implementation of Sierpinski's Triangle. (Cutting a single triangle from the MIDDLE of all triangles, have not implemented ratios)
This uses statically hosted files - i.e. everything is done in the browser! You can just download & open the index.html file & everything will work!
Iteratively calculates all the subtriangles at each stage Further reading