Fades an object that implements the RGBAProtocol protocol.
More...
#include <ActionInterval.h>
Inherits ActionInterval.
Inherited by FadeIn, and FadeOut.
|
virtual void | update (float time) override |
|
bool | initWithDuration (float duration, uint8_t opacity) |
| initializes the action with duration and opacity
|
|
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 FadeTo * | create (float duration, uint8_t opacity) |
| Creates an action with duration and opacity.
|
|
Fades an object that implements the RGBAProtocol protocol.
It modifies the opacity from the current value to a custom one.
- Warning
- This action doesn't support "reverse"
◆ create()
static FadeTo * create |
( |
float | duration, |
|
|
uint8_t | opacity ) |
|
static |
Creates an action with duration and opacity.
- Parameters
-
duration | Duration time, in seconds. |
opacity | A certain opacity, the range is from 0 to 255. |
- Returns
- An autoreleased FadeTo object.
◆ update()
virtual void update |
( |
float | time | ) |
|
|
overridevirtual |
◆ initWithDuration()
bool initWithDuration |
( |
float | duration, |
|
|
uint8_t | opacity ) |
initializes the action with duration and opacity
- Parameters
-
The documentation for this class was generated from the following file: