PathOperationMoveTo

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
move to <mPoint> on <mPath>
Associationscom.livecode.canvas
Summary

Move to a new point on a path.

Parameters
NameTypeDescription
mPath

An expression which evaluates to a path.

mPoint

An expression which evaluates to a point.

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 [50, 50] on tPath

// Add a line to tPath
line to point [100, 50] on tPath

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

// Add a line to tPath
line to point [100, 100] on tPath
Description

Ends the current subpath and sets the starting point for new components of mPath to mPoint.

Tagscanvas