GithubHelp home page GithubHelp logo

johnnyawesome / sierpinskicarpet Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 1.2 MB

SierpinskisCarpet written in P5JS

License: MIT License

HTML 0.01% JavaScript 99.99%
fractal fractals fractal-images fractal-algorithms fractal-rendering fractal-geometry fractal-dimension sierpinski sierpinski-carpet processing

sierpinskicarpet's Introduction

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!

sierpinskicarpet's People

Contributors

johnnyawesome avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.