johnnyawesome / SierpinskiCarpet

SierpinskisCarpet written in P5JS

Home Page:https://breaksome.tech/coding-the-sierpinski-carpet-in-p5js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SierpinskiCarpet

Sierpinskis 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

SierpinskiCarpet

Other, Closely related Fractals

The Sierpinski Carpet actually is a two-dimensional version of two other very, very famous Fractals:

The Cantor Set

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:

Cantor Set

You can find out more about the Cantor Set here

But wait! It gets even better!

The Menger Sponge

Check out this thing:

Menger Sponge

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!