Captures the accumulated geometry and returns a new immutable VectorPath. The builder remains usable afterward; the returned path is an independent snapshot, so subsequent edits do not affect it.
StaticcreateStaticgetReturns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Adds a straight segment from the current point to pt. With no current point,
behaves as a moveTo to pt.
Finalizes the current contour (if any) and begins a new contour at pt.
A mutable builder for an immutable VectorPath. Add contours with
moveToand connect them with straight (lineTo) or curved (cubicTo,quadTo) segments, then call VectorPathBuilder#build to produce the path. AmoveTofinalizes the current contour and begins a new one. Calling a draw method (lineTo/cubicTo/quadTo) before anymoveTostarts a new contour at that target point. Coordinates are 2-component vectors[x, y].Since
Lens Scripting Version 370
Snap OS
Example