×
A new build of Corona SDK is now available to subscribers. Not a subscriber? Subscribe now.
CoronaSDK 2014.2439 | Released: 19 Sep 2014, 1:36am | What's New | Download Now

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