pencil.js
Version:
Nice modular interactive 2D drawing library.
27 lines (17 loc) • 503 B
Markdown
Equiangular and equilateral convex polygon.

```js
import { RegularPolygon } from "pencil.js";
const nbSides = 7;
const radius = 100;
const options = {
fill: "gold",
stroke: "#000"
};
const heptagon = new RegularPolygon(center, nbSides, radius, options);
```
Inherit from [PolygonOptions](../polygon/readme.md
Polygon have no specific options.