Blog site with my creations
The following applet, written in Python, can simulate the formation of polygons.
It simply use the fact the external angle of a regular polygon is 360/n, where n is the number of sides.