Polygon
Shape from a bunch of points.
Installation
npm install @pencil.js/polygon
Examples
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.