|
cocos2d-iphone
1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
|
#include <CCTransition.h>
Inheritance diagram for CCTransitionFade:
Collaboration diagram for CCTransitionFade:Public Member Functions | |
| id | initWithDuration:scene:withColor: (ccTime duration,[scene] CCScene *scene,[withColor] ccColor3B color) |
Static Public Member Functions | |
| id | transitionWithDuration:scene:withColor: (ccTime duration,[scene] CCScene *scene,[withColor] ccColor3B color) |
Protected Attributes | |
| ccColor4B | color |
CCTransitionFade: Fade out the outgoing scene and then fade in the incoming scene.'''
| id CCTransitionFade::initWithDuration:scene:withColor: | ( | ccTime | duration, |
| [scene] CCScene * | scene, | ||
| [withColor] ccColor3B | color | ||
| ) | [virtual] |
initializes the transition with a duration and with an RGB color
| id CCTransitionFade::transitionWithDuration:scene:withColor: | ( | ccTime | duration, |
| [scene] CCScene * | scene, | ||
| [withColor] ccColor3B | color | ||
| ) | [static, virtual] |
creates the transition with a duration and with an RGB color Example: [FadeTransition transitionWithDuration:2 scene:s withColor:ccc3(255,0,0)]; // red color