User Tools

Site Tools


projects:carpet

This is an old revision of the document!


Carpet

Download it here

Carpet is a very simple program for exploring variations of the Sierpenski Carpet. You may know of the Sierpenski Carpet as the 2D version of the Menger sponge. Here is a gif of it's construction from Wikipedia:

You start off with a square. Then, you divide that square into ninths, and color each according to the color of the big square. Then, you repeat for each of the small squares, ad infinitum. For Sierpenski's Carpet, the rules are:

###    ###
### -> #.#
###    ###
...    ...
... -> ...
...    ...
projects/carpet.1619223752.txt.gz · Last modified: 2021/04/24 00:22 by Owen Mellema