CCLayerColor Class Reference
Inherits from | CCLayerRGBA : CCLayer : CCNode : NSObject |
Conforms to | CCBlendProtocol |
Declared in | CCLayer.h |
Overview
CCLayerColor 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 in Points
-
+ layerWithColor:
creates a CCLayer with color. Width and height are the window size.
-
– initWithColor:width:height:
initializes a CCLayer with color, width and height in Points. This is the designated initializer.
-
– initWithColor:
initializes a CCLayer with color. Width and height are the window size.
-
– changeWidth:
change width in Points
-
– changeHeight:
change height in Points
-
– changeWidth:height:
change width and height in Points
-
blendFunc
BlendFunction. Conforms to CCBlendProtocol protocol
property
Class Methods
Instance Methods
changeWidth:height:
change width and height in Points
- (void)changeWidth:(GLfloat)w height:(GLfloat)h
Availability
Declared In
CCLayer.h