GradientOperationScale

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

Apply a scale to a gradient paint.

Parameters
NameTypeDescription
mScale

An expression which evaluates to a list of numbers.

mGradient

An expression which evaluates to a gradient.

Example
// Create new gradient paint
variable tGradient
put linear gradient with ramp [gradient stop at 0 with color [0,0,0], gradient stop at 1 with color [1,1,1]] into tGradient

// Scale the gradient
scale tGradient by [2,2]
Description

Scales the transform of mGradient by mScale.

Tagscanvas