PatternOperationScale

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
scale <mPattern> by <mScale>
Associationscom.livecode.canvas
Summary

Apply a scale to a pattern.

Parameters
NameTypeDescription
mPattern

An expression which evaluates to a pattern.

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 a new pattern paint from an image file
variable tPattern
put pattern with image from file "images/pattern.png" into tPattern

// Scale the pattern to twice the current width
scale tPattern by [2,1]
Description

Scales the transform of mPattern by mScale

Tagscanvas