This script allows to generate the vertices, of a regular polygon, as svg circles. It is possible to specify:
The vertices coordinates are generated splitting a circumference in N parts, corresponding to the polygon sides. If N=1 then the vertice coordinates correspond to the center of the circumference.
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>Regular Polygon Vertices GENERATOR</title>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="index.js"></script>
</head>
<body onload="main()"></body>
</html>
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js