A small JavaScript program to generate polygons. If step = 1, the polygons are normal polygons. Use the step> 1 to draw star polygons. The star polygons will be regular if the greatest common divisor between the step and number of vertices is one, which means that they can be drawn by a continuous line from vertex to vertex.


Vertices
Step
Size