applets.

Chaos Game

← All apps

About the Chaos Game

A dot jumps part of the way towards a corner chosen at random, again and again, leaving a mark each time. Out of the randomness, a perfect fractal appears.

THE STORY

The Sierpinski triangle is named after the Polish mathematician Wacław Sierpiński, who described it in 1915: take a triangle, cut out the middle quarter, then do the same to each of the three triangles left, for ever.

The "chaos game" way of drawing it was made famous by the mathematician Michael Barnsley in his 1988 book Fractals Everywhere. Start anywhere, pick one of the three corners at random, move halfway towards it and make a dot. Repeat. After the first few jumps every dot lands on the triangle, as near as the eye can tell, and after a few thousand the shape is unmistakable. Every game is random, but the picture always comes out the same.

MORE SHAPES

Change the number of corners and how far each jump goes to get other fractals. With five corners, jumping 0.618 of the way (1 ÷ the golden ratio) makes the pentaflake (strictly the Sierpiński pentagon: the full pentaflake also has a copy in the middle). Rules about which corner may come next (never the same one twice, never a neighbour) give stars, crosses and frames. SUBDIVIDE draws it Sierpiński's own way instead (recursive subdivision): cut the middle triangle out, then do the same to each of the three triangles left, so you can compare the two.

FURTHER WATCHING AND READING

Speed
Stop at

PRESETS

Targets
Jump

Rule

Subdivide
Style
Look