Skip to content

Latest commit

 

History

History
 
 

regular-polygon

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

RegularPolygon

Equiangular and equilateral convex polygon.

Installation

npm install @pencil.js/regular-polygon

Examples

import RegularPolygon from "@pencil.js/regular-polygon";

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