Skip to content

johnnyawesome/SierpinskiCarpet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

SierpinskiCarpet

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

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!