PatternOperationRotate

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

Apply a rotation to a pattern.

Parameters
NameTypeDescription
mPattern

An expression which evaluates to a pattern.

mRotation

An expression which evaluates to a number of degrees.

Example
// Create a new pattern paint from an image file
variable tPattern
put pattern with image from file "images/pattern.png" into tPattern

// Rotate the pattern through 30 degrees
rotate tPattern by 30
Description

Rotates the transform of mPattern by mRotation

Tagscanvas