Package-level declarations
Functions
Adds a cubic Bézier curve vertex to the current shape. The curve is defined by two control points and an end point.
Converts a PShape of type PATH
into a ShapeContour.
Combines a list of Shape objects into a single PShape object of type GROUP
by adding each shape as a child.
Converts a given Shape instance into a PShape object. If the shape contains a single contour, it is directly converted. Otherwise, the method constructs a complex PShape with paths and contours, mapping each segment type appropriately.
Converts a given ShapeContour into a PShape object. The method translates contour segments (linear, quadratic, cubic) into corresponding vertices and shapes suitable for use with the Processing library.
Adds a quadratic Bezier vertex to the shape. The method specifies control and anchor points for the curve using Vector2 instances.
Converts this PShape instance into a list of ShapeContour objects.