Sierpinski Triangle via Chaos Game

The chaos game: pick a random vertex, move halfway there, plot. Repeat. No matter where you start, the orbit converges to the Sierpinski triangle — an attractor of the iterated function system (IFS). Change the shrink ratio or vertex count to get other fractals. Hausdorff dimension = log(3)/log(2) ≈ 1.585.

Vertices 3
Shrink ratio 0.50
Points/step 2000
Color mode
Points: 0