Constructors
new
Methods
moveTo
Moves the current point to the specified location, starting a new contour.
lineTo
Adds a straight line segment from the current point to the specified point.
quadTo
Adds a quadratic Bézier curve from the current point to the specified point,
using the control point to define the curve shape.
cubicTo
Adds a cubic Bézier curve from the current point to the specified point,
using controlOut for the start tangent and controlIn for the end tangent.
close
Closes the current contour by adding a line segment from the current point
back to the first point of the contour (the last moveTo).
__len
Each entry is a PathCommand describing one segment or action in the path.
reset
Do not mutate or reset a Path in the same frame after drawing it.
If you need to change it, wait until the next frame.
Only call reset on subsequent frames if you’ve called Renderer.drawPath
with it.
add
Appends the commands from other onto this path. If transform is provided,
the appended commands are transformed as they are added.
contours
Returns a ContourMeasure for the first contour in the path. A contour is a
sequence of path segments starting at a moveTo and ending before the next
moveTo (or end of path). Use the next property on the returned
ContourMeasure to iterate through subsequent contours. Returns nil if the
path has no contours.