PathOperationClosePath

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

Closes the current subpath of a path.

Parameters
NameTypeDescription
mPath

An expression which evaluates to a path.

Example
// Create a new empty path
variable tPath as Path
put the empty path into tPath

// Begin a new subpath of tPath
move to point [25, 50] on tPath

// Continue path with a curve through 25,100 to 50,100
curve through [25,100] to [50,100] on tPath

// Close the path
close path on tPath
Description

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

Tagscanvas