Menu - Top - Home - Donate to Me

module:extras/starpolygon

Back to documentation index.

module:extras/starpolygon()

The extras/starpolygon.js module. To import all symbols in this module, either of the following can be used:

import * from "extras/starpolygon.js";
// -- or --
import * as CustomModuleName from "extras/starpolygon.js";

Methods

(static) module:extras/starpolygon.starPolygon(x, y, radius, points, jump, [phaseInDegrees])

Generates a star polygon {points/jump}.

Parameters

Return Value

Array of points (two-element arrays) making up the star polygon. The first number of each point is the X coordinate, and the second the Y coordinate. (Type: Array.<Array.<number>>)

Back to documentation index.