CCLayerRGBA
CCLayerRGBA
Cocos2DInheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCLayer
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCAccelerometerDelegate, Cocos2D.ICCRGBAProtocol
Constructors
CCLayerRGBA()
CCLayerRGBA()()
Fields
Properties
returns whether or not the opacity will be applied using glColor(R,G,B,opacity) or glColor(opacity, opacity, opacity, opacity); @since v0.8 whether or not color should be propagated to its children.
whether or not opacity should be propagated to its children.
Gets or sets the color
sets the premultipliedAlphaOpacity property. If set to NO then opacity will be applied as: glColor(R,G,B,opacity); If set to YES then oapcity will be applied as: glColor(opacity, opacity, opacity, opacity ); Textures with premultiplied alpha will have this property by default on YES. Otherwise the default value is NO @since v0.8
Gets or sets the Opacity @warning If the the texture has premultiplied alpha then, the R, G and B channels will be modifed. Values goes from 0 to 255, where 255 means fully opaque.
Methods
Init()
System.Boolean Init()()
Returns:
System.Boolean
Example
UpdateDisplayedColor(CCColor3B)
UpdateDisplayedColor(CCColor3B)(Cocos2D.CCColor3B parentColor)
recursive method that updates display color
Parameters:
parentColor
(Cocos2D.CCColor3B)Example
UpdateDisplayedOpacity(byte)
UpdateDisplayedOpacity(byte)(System.Byte parentOpacity)
recursive method that updates the displayed opacity.
Parameters:
parentOpacity
(System.Byte)Example