Sierpinski Carpet written in P5JS
The Sierpinski Carpet is a two dimensional version of two other, very famous Fractals (more below).
Sierpinski Carpet looks like this
The Sierpinski Carpet actually is a two-dimensional version of two other very, very famous Fractals:
If you think about ut, the Sierpinski Carpet consists of a bunch of squares, really.
And a square is two-dimensional. It has a width and a height.
Did you know that the Cantor Set is a One-Dimensional version of the Sierpinski Carpet?
It looks loke this:
You can find out more about the Cantor Set here
But wait! It gets even better!
Check out this thing:
It's called a Menger Sponge!
And - you guessed it - it's a three-dimensional version of the Sierpinski Carpet!
You can find my version of the Menger Sponge right here!