TransformPropertyTranslation

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
the translation of <mTransform>
Associationscom.livecode.canvas
Summary

The translation component of a transform.

Parameters
NameTypeDescription
mTransform

An expression which evaluates to a transform.

Example
variable tTransform
put transform with matrix [0, 2, -2, 0, 50, 100] into tTransform

// Store the old translation component
variable tTranslation
put the translation of tTransform into tTranslation

// Adjust the offset of the transformation
set the translation of tTransform to [element 1 of tTranslation + 5, element 2 of tTranslation + 5]
Description

The translation of mTransform as a list of 2 numbers (the x and y offset values).

Tagscanvas