cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
CCFadeTo Class Reference

#import <CCActionInterval.h>

+ Inheritance diagram for CCFadeTo:
+ Collaboration diagram for CCFadeTo:

List of all members.

Public Member Functions

(id) - initWithDuration:opacity:

Static Public Member Functions

(id) + actionWithDuration:opacity:

Protected Attributes

GLubyte _toOpacity
GLubyte _fromOpacity

Detailed Description

Fades an object that implements the CCRGBAProtocol protocol. It modifies the opacity from the current value to a custom one.

Warning:
This action doesn't support "reverse"

Member Function Documentation

+ (id) actionWithDuration: (ccTime duration
opacity: (GLubyte)  opactiy 

creates an action with duration and opacity

- (id) initWithDuration: (ccTime duration
opacity: (GLubyte)  opacity 

initializes the action with duration and opacity


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