Closes the current contour by adding a line segment from the current
point back to the first point of the contour (the last moveTo).
Copy
Ask AI
-- Draw a rectanglepath:moveTo(Vector.xy(-10, -10))path:lineTo(Vector.xy(10, -10))path:lineTo(Vector.xy(10, 10))path:lineTo(Vector.xy(-10, 10))-- Close the pathpath:close()
Returns a ContourMeasure for the first contour in the path. A contour is
a sequence of path segments between moveTo operations. Use the ‘next’
property on the returned ContourMeasure to iterate through subsequent
contours. Returns nil if the path has no contours.