Set the slider "n" number of sides of a polygon, and then press "START".
Simplified some code and added dancing spider at the end. Click spider for equation of polygon diagonals! Press "c" for color