Color of the shape, by default set to white (0xffffff).
new Color()
The current Path that is being generated.
null
Array of Paths.
[]
Readonly
type'ShapePath'
Create a bezier curve from the currentPath offset to x and y with cp1X, cp1Y and cp2X, cp2Y as control points and updates the currentPath offset to x and y.
This instance.
Control point1, x coordinate
Control point1, y coordinate
Control point2, x coordinate
Control point2, y coordinate
end point, x coordinate
end point, y coordinate
Create a quadratic curve from the currentPath's offset to x and y with cpX and cpY as control point and update the currentPath offset to x and y.
This instance.
The control point x coordinate
The control point y coordinate
The end point x coordinate
The end point y coordinate
Converts the subPaths array into an array of Shapes. By default solid shapes are defined clockwise (CW) and holes are defined counterclockwise (CCW). If isCCW is set to true, then those are flipped. If the parameter noHoles is set to true then all paths are set as solid shapes and isCCW is ignored.
Array of shapes.
Changes how solids and holes are generated
Optional
noHoles: booleanWhether or not to generate holes
A Path builder that incrementally converts a series of shapes into an array of Paths. For example an SVG shape to a path.