benuklove / fractals

Creating fractal images using Bokeh Server for chaos game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fractals

Step one of "Make it work, make it right, make it fast". 😁

Playing with Bokeh Server.

File Info:

Three points:

The Sierpinski Triangle/Gasket chooses randomly from three points to create the fractal. Using four points doesn't result in a fractal, so restrictions are needed:

  • fractal_restriction_1.py

    Restriction: Chosen target point (vertex) cannot be same as previously chosen point.

  • fractal_restriction_2.py

    Restriction: Chosen target point cannot be one point away, anti-clockwise, from previously chosen point.

  • fractal_restriction_3.py

    Restriction: Chosen target point cannot be two points away from previously chosen point.


Inspired by Numberphile, on YouTube

Informed by Wikipedia.

About

Creating fractal images using Bokeh Server for chaos game.


Languages

Language:Python 100.0%