Generate SVG polygons

Playing around with javascript to draw SVG shapes.
You may want to visit version II and Version III.
Info Save SVG into test.svg file and import into say Sketch or Illustrator. Thanks to Gerard Sans for save PNG functionality.

Parameters

Corners
Radius
Min. radius
Lines
Rotate

SVG: Try altering it! :-)