Very simple implementation of a regular polygon. Press 'space' to clear the drawing area. Press 'a' to draw a series of polygons. Press 'b' to draw a single polygon. Variable 'n' defines the number of corners.