Click on the green flag. (Use turbo mode for fastest rendering) Use the slider to set the number of sides of the polygon to use the algorithm in. Use the slider to set the distance (the program takes the reciprocal of this) or hit d to enter a distance manually. Hit s to draw the polygon (for large-sided figures, this may take a few seconds) and then hit space to start the chaos game. Even if you somehow mess up and hit space then s, the algorithm will still generate a decent fractal, but the polygon will look messed up. Not all combinations will give cool results, so here are a few nice combinations to try: Sides: 3, Distance: 2 Sides: 4, Distance: 1.875 Sides: 5, Distance: 2 Sides: 6, Distance: 1.5
What is the chaos game? The chaos game is an algorithm involving plotting points inside a polygon. Basically, draw a regular n-gon (a polygon with n sides that has all equal sides and angles). Then, pick a fraction (The fraction here is 1 divided by the distance variable, or 1/distance, so distance 2 gives fraction 1/2). After that, pick a random point on or inside the polygon (this program starts on a random corner). Now, the game begins. Pick a random corner, and draw a point that is your chosen fraction of the distance away from that corner. Use the new point as a starting point, and repeat the last step. (Ex: if the fraction was 1/2, then you would draw a point half the distance between the starting point and the chosen random corner and use that new point to repeat)