TransformMakeTranslation

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
transform with translation <mTranslation>
Associationscom.livecode.canvas
Summary

Creates a new translation transform.

Parameters
NameTypeDescription
mTranslation

An expression which evaluates to a list of 2 numbers, the x and y offsets of the translation.

Example
// Create translation transform to offset coordinates by 50,100
variable tTransform
put transform with translation [50,100] into tTransform
Values
NameTypeDescription
return

A new translation transform.

Description

Creates a new translation transform.

Tagscanvas