pencil.js
Version:
Nice modular interactive 2D drawing library.
26 lines (16 loc) • 444 B
Markdown
Shape from a bunch of points.

```js
import { Polygon } from "pencil.js";
const points = [pointA, pointB, pointC];
const options = {
fill: "red",
stroke: "#000"
};
const polygon = new Polygon(position, points, options);
```
Inherit from [ComponentOptions](../component/readme.md
Polygon have no specific options.