General method to draw regular polygons inscribed in a circle