Sierpinski's Triangle (The Chaos Game)

The Chaos Game uses the following algorithm:

Given three fixed points in space (p1, p2, and p3) and a random point p4.

  1. Choose randomly one of the points p1, p2, or p3.
  2. Place a new point halfway between point p4 and and the point chosen in 1.
  3. Call this new point p4 and repeat from 1.

With a Java-enabled browser, you would see the Chaos Game here.

Last updated and HTML-validated February 5. 1998 by Arve Hetland.

Valid HTML 4.0!