closePath

Appends PathVerb.CLOSE to Path. A closed contour connects the first and last Point with line, forming a continuous loop. Open and closed contour draw the same with PaintMode.FILL. With PaintMode.STROKE, open contour draws PaintStrokeCap at contour start and end; closed contour draws PaintStrokeJoin at contour start and end.

closePath() has no effect if Path is empty or last Path PathVerb is PathVerb.CLOSE.

Return

reference to Path

See also