GradientOperationRotate

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
rotate <mGradient> by <mRotation>
Associationscom.livecode.canvas
Summary

Apply a rotation to a gradient paint.

Parameters
NameTypeDescription
mRotation

An expression which evaluates to a number.

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

// Rotate the gradient
rotate tGradient by 45
Description

Rotates the transform of mGradient by mRotation degrees.

Tagscanvas