make and play math video games

Reset Reset
Pause Pause
Fullscreen Fullscreen
Toggle Sound Sound

On keyboards, use the arrow keys, X (A-button), and Z (B-button).

Chaos Game

View source code

This is the so-called “chaos game.”

In the three-point version of the game, the user first places a point anywhere and presses the A-button. One of the red, green, or blue dots is selected, and the midpoint of the initial point and this point is plotted. Working with newly plotted point, we iteratively repeat this process.

What picture emerges?