PathOperationTranslate

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
translate <mPath> by <mTranslation>
Associationscom.livecode.canvas
Summary

Apply a translation to a path.

Parameters
NameTypeDescription
mTranslation

An expression which evaluates to a list of numbers.

mPath

An expression which evaluates to a path.

Example
// Create a rectangle path
variable tPath as Path
put rectangle path of rectangle [10,10,210,60] into tPath

// Translate the path
translate tPath by [50,100]
Description

Translates mPath by mTranslation.

Tagscanvas