I once read a brain teaser about 4 flies that are placed at the corners of a square. Each one tries to walk to the
adjacent fly, but since they are all moving they follow a spiral path towards the center of the square.
I wrote a program to simulate those flies. The result was the first incarnation of "Math Art".
In this demo you can change the colors, number of sides, closing factor,
line width, and how many cycles to run the simulation.
Click "Draw" to generate a new image or pick one of these demos:
Click "Draw" to generate a new image or pick one of these demos:
more