PatternOperationTranslate |
Type | statement |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | translate <mPattern> by <mTranslation>
|
Associations | com.livecode.canvas |
Summary | Apply a translation to a pattern.
|
Parameters | Name | Type | Description |
---|
mPattern | | An expression which evaluates to a pattern.
|
mTranslation | | An expression which evaluates to a list of 2 numbers, the x and y offsets of the translation.
|
|
Example |
variable tPattern
put pattern with image from file "images/pattern.png" into tPattern
translate tPattern by [-20,0]
|
Description | translates the transform of mPattern by mTranslation
|
Tags | canvas |