CCLayerGradient
CCLayerGradient
Cocos2DInheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCLayer → Cocos2D.CCLayerRGBA → Cocos2D.CCLayerColor
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, Cocos2D.ICCBlendProtocol
Constructors
CCLayerGradient()
CCLayerGradient()()CCLayerGradient(CCColor4B, CCColor4B)
CCLayerGradient(CCColor4B, CCColor4B)(Cocos2D.CCColor4B start, Cocos2D.CCColor4B end)Creates a full-screen CCLayer with a gradient between start and end.
Parameters:
start (Cocos2D.CCColor4B)end (Cocos2D.CCColor4B)Example
CCLayerGradient(CCColor4B, CCColor4B, CCPoint)
CCLayerGradient(CCColor4B, CCColor4B, CCPoint)(Cocos2D.CCColor4B start, Cocos2D.CCColor4B end, Cocos2D.CCPoint v)Creates a full-screen CCLayer with a gradient between start and end in the direction of v.
Parameters:
start (Cocos2D.CCColor4B)end (Cocos2D.CCColor4B)v (Cocos2D.CCPoint)Example
CCLayerGradient(byte, byte)
CCLayerGradient(byte, byte)(System.Byte startOpacity, System.Byte endOpacity)Parameters:
startOpacity (System.Byte)endOpacity (System.Byte)Properties
Methods
Init()
System.Boolean Init()()Returns:
System.BooleanExample
InitWithColor(CCColor4B, CCColor4B)
System.Boolean InitWithColor(CCColor4B, CCColor4B)(Cocos2D.CCColor4B start, Cocos2D.CCColor4B end)Initializes the CCLayer with a gradient between start and end.
Parameters:
start (Cocos2D.CCColor4B)end (Cocos2D.CCColor4B)Returns:
System.BooleanExample
InitWithColor(CCColor4B, CCColor4B, CCPoint)
System.Boolean InitWithColor(CCColor4B, CCColor4B, CCPoint)(Cocos2D.CCColor4B start, Cocos2D.CCColor4B end, Cocos2D.CCPoint v)Initializes the CCLayer with a gradient between start and end in the direction of v.
Parameters:
start (Cocos2D.CCColor4B)end (Cocos2D.CCColor4B)v (Cocos2D.CCPoint)Returns:
System.BooleanExample
UpdateColor()
UpdateColor()()Example