raingod >> resources >> Java >> Software >> Chaos Game
Chaos Game
Last updated: 08.05.2002
ChaosGame
This applet plots a triangular shape called a Sierpinski triangle. The interesting property of this shape is that it's a fractal exhibiting selfsimilarity: the main triangle contains smaller triangles that contain smaller triangles that ... you get the idea. The shape is actually formed by placing a single point and then moving it towards one of three randomlychosen attractors located at the points of the triangle. Each time the point is moved, it is plotted, and the result is the shape you see (or don't see if your browser doesn't support Java 1.1).
The applet parameters also allow you to try it with different numbers of attractors, or with a different number of iterations, but the results tend to be fairly gruesome for any number of attractors other than 3.
