This Java applet is an implementation (version 0.2) of the chaos game. This applet is written by Trevor Stone. Read the source code.
To play the chaos game, draw a random point inside a regular polygon with n sides. Select a random vertex. Draw a point a fraction r of the way from the previous point to the selected vertex. Iterated many times, this produces a fractal for many values of n and r. Some non-fractal configurations are nonetheless interesting with one or more color schemes.
| Sides | Distance |
|---|---|
| 3 | 0.375 |
| 3 | 0.5 |
| 4 | 0.55 |
| 5 | 0.525 |
| 5 | 0.625 |
| 6 | 0.575 |
| 6 | 0.675 |
| 7 | 0.69 |
| 8 | 0.6 |
| 8 | 0.75 |
| 60 | 0.75 |
| 60 | 0.875 |
| 90 | 0.95 |
| 360 | 0.05 |
| 360 | 0.8 |
This
work is licensed under a
Creative Commons Attribution 3.0 License.