Inherits from CCNode : NSObject
Conforms to CCRGBAProtocol
Declared in CCNode.h

Overview

CCNodeRGBA is a subclass of CCNode that implements the CCRGBAProtocol protocol.

All features from CCNode are valid, plus the following new features: – opacity – RGB colors

Opacity/Color propagates into children that conform to the CCRGBAProtocol if cascadeOpacity/cascadeColor is enabled.

Tasks

Instance Methods

opacity

sets and returns the opacity.

- (GLubyte)opacity

Discussion

Warning: If the the texture has premultiplied alpha then, the R, G and B channels will be modified. Values goes from 0 to 255, where 255 means fully opaque.

Declared In

CCProtocols.h