Skip to content

Star ​

Star shape.

Star example

Examples ​

js
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.

Released under the MIT License.