Figures is an experiment in generating and animating simple polygons. Instead of using horizontal and vertical coordinates for each element, the program uses radii (lines radiating from the polygon's center.) Because these radii are evenly distributed over a full circle, there's no need to define an angle. To, for example, define the following figures just specify:

3 equal radii for a triangle, 4 for a square, and 8 for an octagon.

Variable radii in a single polygon (stars/sprockets, for example) are allowed. There's also a function which allows you to append one polygon's radii to another polygon's.

How to use:
1. When it starts, it displays a few simple polygons.
2. You can press any key to toggle whether not the radii are drawn.
3. Double click to start/stop animation.

The original vb6 program can be found here: http://www.vbforums.com/showthread.p...-with-polygons