@pencil.js/polygon
v1.18.0
Published
Multi points shape for Pencil.js package.
Readme
Polygon
Shape from a bunch of points.

Installation
npm install @pencil.js/polygonExamples
import Polygon from "@pencil.js/polygon";
const points = [pointA, pointB, pointC];
const options = {
fill: "red",
stroke: "#000"
};
const polygon = new Polygon(position, points, options);PolygonOptions
Inherit from ComponentOptions.
Rectangle have no specific options.
