Inherits from CCNode : CCResponder : NSObject
Conforms to CCBlendProtocol
CCShaderProtocol
Declared in CCNodeColor.h

Overview

CCNodeColor is a subclass of CCNode that is used to generate solid colors.

Tasks

Creating a CCNodeColor Object

Initializing a CCNodeColor Object

Class Methods

nodeWithColor:

Creates a node with color. Width and height are the window size.

+ (id)nodeWithColor:(CCColor *)color

Parameters

color

Color of the node.

Return Value

The CCNodeColor Object.

Declared In

CCNodeColor.h

nodeWithColor:width:height:

Creates a node with color, width and height in Points.

+ (id)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.

Declared In

CCNodeColor.h

Instance Methods

initWithColor:

Initializes 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.

Declared In

CCNodeColor.h

initWithColor:width:height:

Initializes 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.

Declared In

CCNodeColor.h