TransformMakeScale

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
transform with scale <mScale>
Associationscom.livecode.canvas
Summary

Creates a new scaling transform value.

Parameters
NameTypeDescription
mScale

An expression which evaluates to a list of 1 or 2 numbers, the x-axis scale and y-axis scale, or the uniform scale when only a single value is given.

Example
// Create x2 uniformly scaling transform
variable tTransform
put transform with scale [2] into tTransform

// Create transform which only scales in the direction of the x axis
put transform with scale [ 2, 1 ] into tTransform
Values
NameTypeDescription
return

A new scale transform.

Description

Creates a new scaling transform value.

Tagscanvas