2009-06-19

3 Ways To Generate A Sierpinski Carpet

Unless you're a maths or programming geek, you probably won't find this terribly interesting. While searching around on my hard disk for something completely unrelated, I came across some code which demonstrates three ways to generate a Sierpinski Carpet. I've uploaded them to OpenProcessing: Pascal's Triangle, Hadamard Matrix & IFS.

I didn't write these algorithms (I'm not clever enough for that) but I did do the adaptation from the original BASIC to Processing.