Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
FadeIn Class Reference

Fades In an object that implements the RGBAProtocol protocol. More...

#include <ActionInterval.h>

Inherits FadeTo.

Public Member Functions

void setReverseAction (FadeTo *ac)
 @js NA
 
- Public Member Functions inherited from FadeTo
virtual void update (float time) override
 
bool initWithDuration (float duration, uint8_t opacity)
 initializes the action with duration and opacity
 
- Public Member Functions inherited from ActionInterval
float getElapsed ()
 How many seconds had elapsed since the actions started to run.
 
void setAmplitudeRate (float amp)
 Sets the amplitude rate, extension in GridAction.
 
float getAmplitudeRate ()
 Gets the amplitude rate, extension in GridAction.
 
virtual void step (float dt) override
 
bool initWithDuration (float d)
 initializes the action
 

Static Public Member Functions

static FadeIncreate (float d)
 Creates the action.
 
- Static Public Member Functions inherited from FadeTo
static FadeTocreate (float duration, uint8_t opacity)
 Creates an action with duration and opacity.
 

Detailed Description

Fades In an object that implements the RGBAProtocol protocol.

It modifies the opacity from 0 to 255. The "reverse" of this action is FadeOut

Member Function Documentation

◆ create()

static FadeIn * create ( float d)
static

Creates the action.

Parameters
dDuration time, in seconds.
Returns
An autoreleased FadeIn object.

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