< CocosNodeRGB > Protocol Reference

Size CocosNode protocol. More...

#import <CocosNode.h>

Inherited by AtlasNode, AtlasSprite, ColorLayer, and TextureNode.

List of all members.

Public Member Functions

(void) - setRGB:::
(GLubyte) - r
 The red component of the node's color.
(GLubyte) - g
 The green component of the node's color.
(GLubyte) - b
 The blue component of the node's color.


Detailed Description

Size CocosNode protocol.

Member Function Documentation

- (GLubyte) b  

The blue component of the node's color.

- (GLubyte) g  

The green component of the node's color.

- (GLubyte) r  

The red component of the node's color.

- (void) setRGB: (GLubyte)  r
: (GLubyte)  g
: (GLubyte)  b 

set the color of the node. example: [node setRGB: 255:128:24]; or [node setRGB:0xff:0x88:0x22];

Since:
v0.7.1


The documentation for this protocol was generated from the following file:

Generated on Tue Jun 9 10:39:33 2009 for cocos2d for iPhone 0.7.3 by  doxygen 1.5.8