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.
<<
Source code: sierpinski_0
Built with Processing