CanvasOperationClosePath

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
close path on <mCanvas>
Associationscom.livecode.canvas
Summary

Closes the current subpath of a canvas.

Parameters
NameTypeDescription
mCanvas

An expression which evaluates to a canvas.

Example
// Begin a new subpath on the canvas
move to point [25, 50] on this canvas

// Continue path with a curve through 25,100 to 50,100
curve through point [25,100] to point [50,100] on this canvas

// Close the path
close path on this canvas

// stroke the canvas path
stroke this canvas
Description

Adds a line from the previous point to the start of current subpath, signaling the end of the subpath.

Tagscanvas