@pencil.js/polygon

1.18.0 • Public • Published

Polygon

Shape from a bunch of points.

Polygon example

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.

Readme

Keywords

Package Sidebar

Install

npm i @pencil.js/polygon

Weekly Downloads

0

Version

1.18.0

License

MIT

Unpacked Size

4.2 kB

Total Files

4

Last publish

Collaborators

  • gmartigny