Skip to content

johnnyawesome/CantorSet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

CantorSet

The famous Cantor Set written in P5JS

The Cantor Set was the first Fractal ever discovered!

Cantor Set

Other, Closely related Fractals

The Cantor Set actually is a one-dimensional version of two other very, very famous Fractals:

The Sierpinski Carpet

If you think about it, a line has just one dimension.

And so the Cantor Set is confined to one dimension.

What happens when you draw a two-dimensional Cantor Set?

Turns out there is another famous Fractal called the Sierpinski Carpet, and it looks like this:

Sierpinski Carpet

This is the same as the Cantor Set, just in two dimensions.

If you want to learn more about the Sierpinski Carpet, check out this link.

But wait, it gets 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 Cantor Set!

You can find my version of the Menger Sponge right here!