Skip to content

Latest commit

 

History

History

polygon

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Polygon

Shape from a bunch of points.

Polygon example

Examples

import { Polygon } from "pencil.js";

const points = [pointA, pointB, pointC];
const options = {
    fill: "red",
    stroke: "#000"
};
const polygon = new Polygon(position, points, options);

PolygonOptions

Inherit from ComponentOptions.

Polygon have no specific options.