Skip to content

Latest commit

 

History

History

star

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Star

Star shape.

Star example

Examples

import { Star } from "pencil.js";

const position = [100, 200];
const nbBranches = 6;
const radius = 50;
const bevel = 0.7;
const options = {
    fill: "gold",
    stroke: "goldendrod"
};
const star = new Star(position, nbBranches, radius, bevel, options);

StarOptions

Inherit from RegularPolygonOptions.

Star have no specific options.