CCColorLayer Class Reference
Inherits from | CCLayer : CCNode : NSObject |
Conforms to | CCBlendProtocol CCRGBAProtocol |
Declared in | CCLayer.h |
Overview
CCColorLayer is a subclass of CCLayer that implements the CCRGBAProtocol protocol.
All features from CCLayer are valid, plus the following new features: – opacity – RGB colors
Tasks
-
+ layerWithColor:width:height:
creates a CCLayer with color, width and height
-
+ layerWithColor:
creates a CCLayer with color. Width and height are the window size.
-
– initWithColor:width:height:
initializes a CCLayer with color, width and height
-
– initWithColor:
initializes a CCLayer with color. Width and height are the window size.
-
– changeWidth:
change width
-
– changeHeight:
change height
-
– changeWidth:height:
change width and height
-
opacity
Opacity: conforms to CCRGBAProtocol protocol
property -
color
Opacity: conforms to CCRGBAProtocol protocol
property -
blendFunc
BlendFunction. Conforms to CCBlendProtocol protocol
property
Properties
blendFunc
BlendFunction. Conforms to CCBlendProtocol protocol
@property (nonatomic, readwrite) ccBlendFunc blendFunc
Declared In
CCLayer.h