Creating fractals with the chaos game
Go to file
matteo78 90182c3155 Update README.md 2013-12-15 23:06:52 +01:00
bootstrap initial commit 2013-12-15 22:45:16 +01:00
css initial commit 2013-12-15 22:45:16 +01:00
fonts initial commit 2013-12-15 22:45:16 +01:00
images initial commit 2013-12-15 22:45:16 +01:00
js initial commit 2013-12-15 22:45:16 +01:00
LICENSE initial commit 2013-12-15 22:45:16 +01:00
README.md Update README.md 2013-12-15 23:06:52 +01:00
index.html initial commit 2013-12-15 22:45:16 +01:00

README.md

chaos-game

A Javascript web app that allows you to test the "Chaos game" algorithm that consists in a few steps :

  1. take a n-vertices polygon (in the app, there is only regular polygons, but it is possible to use scalenous ones);
  2. choose a random point (out or inside the polygon);
  3. choose a random vertex;
  4. take the middle of the segment vertex-point (other factors can also be used);
  5. go to step 2. using the middle point.

This game was created by Michael Barnsley and was described in his book Fractals everywhere in 1993. When using a triangle and a factor 1/2, you get the Sierpinski's triangle. Other fractal forms can also be plotted using other settings. Most common settings are present in the "Presets" section in the app.

More on Michael Barnsley
More on Chaos game
See the app