Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 503 Bytes

readme.md

File metadata and controls

26 lines (17 loc) · 503 Bytes

RegularPolygon

Equiangular and equilateral convex polygon.

Regular-polygon example

Examples

import { RegularPolygon } from "pencil.js";

const nbSides = 7;
const radius = 100;
const options = {
    fill: "gold",
    stroke: "#000"
};
const heptagon = new RegularPolygon(center, nbSides, radius, options);

RegularPolygonOptions

Inherit from PolygonOptions.

Polygon have no specific options.