CCNodeColor Class Reference
Inherits from | CCNode : CCResponder : NSObject |
---|---|
Conforms to | CCBlendProtocol CCShaderProtocol |
Declared in | CCNodeColor.h |
Creating a Color Node
+ nodeWithColor:width:height:
Creates a node with color, width and height in Points.
+ (instancetype)nodeWithColor:(CCColor *)color width:(GLfloat)w height:(GLfloat)h
Parameters
color |
Color of the node. |
---|---|
w |
Width of the node. |
h |
Height of the node. |
Return Value
The CCNodeColor Object.
See Also
Declared In
CCNodeColor.h
+ nodeWithColor:
Creates a node with color. Width and height are the window size.
+ (instancetype)nodeWithColor:(CCColor *)color
Parameters
color |
Color of the node. |
---|
Return Value
The CCNodeColor Object.
See Also
Declared In
CCNodeColor.h
– initWithColor:width:height:
Creates a node with color, width and height in Points.
- (id)initWithColor:(CCColor *)color width:(GLfloat)w height:(GLfloat)h
Parameters
color |
Color of the node. |
---|---|
w |
Width of the node. |
h |
Height of the node. |
Return Value
An initialized CCNodeColor Object.
See Also
Declared In
CCNodeColor.h
– initWithColor:
Creates a node with color. Width and height are the window size.
- (id)initWithColor:(CCColor *)color
Parameters
color |
Color of the node. |
---|
Return Value
An initialized CCNodeColor Object.
See Also
Declared In
CCNodeColor.h