chaos game. one of the many ways to draw the classic sierpinski gasket.
the gasket turns out to be an attractor for a sequence of iterated midpoints.
a key pressed will turn the edges invisible showing only the points.

To view this content, you need to install Java from

Source code: sierpinski_0

Built with Processing