CoronaSDK 2013.1143 | Released: 18 Jun 2013, 2:19am | What's New | Download Now
These docs are *very* out of date.
You will be redirected to the new docs in a few seconds.
If you are certain you want to see the old docs, click cancel.
Cancel | Continue to new docs
You will be redirected to the new docs in a few seconds.
If you are certain you want to see the old docs, click cancel.
Cancel | Continue to new docs
object.maskRotation
Description:
Retrieve or set the rotation of the display object's corresponding mask object, if one exists.
Syntax:
1 2 | object.maskRotation
value = object.maskRotation |
Example:
-- Image to be masked local image = display.newImageRect( "image.png", 768, 1024 ) -- Mask local mask = graphics.newMask( "circlemask.png" ) image:setMask( mask ) image.maskRotation = 180
Parameters:
None.
Returns:
number: maskRotation value of object.
Remarks:
Supported on operating systems and platforms for build numbers shown:
- Mac OS X:Build 2011.268
- Windows:Build 2011.288
- iOS:Build 2011.268
- Android:Build 2011.288