Tints a Node that implements the NodeRGB protocol from current tint to a custom one.
More...
#include <ActionInterval.h>
Inherits ActionInterval.
|
virtual void | update (float time) override |
|
bool | initWithDuration (float duration, uint8_t red, uint8_t green, uint8_t blue) |
| initializes the action with duration and color
|
|
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 TintTo * | create (float duration, uint8_t red, uint8_t green, uint8_t blue) |
| Creates an action with duration and color.
|
|
static TintTo * | create (float duration, const Color3B &color) |
| Creates an action with duration and color.
|
|
Tints a Node that implements the NodeRGB protocol from current tint to a custom one.
- Warning
- This action doesn't support "reverse"
- Since
- v0.7.2
◆ create() [1/2]
static TintTo * create |
( |
float | duration, |
|
|
uint8_t | red, |
|
|
uint8_t | green, |
|
|
uint8_t | blue ) |
|
static |
Creates an action with duration and color.
- Parameters
-
duration | Duration time, in seconds. |
red | Red Color, from 0 to 255. |
green | Green Color, from 0 to 255. |
blue | Blue Color, from 0 to 255. |
- Returns
- An autoreleased TintTo object.
◆ create() [2/2]
Creates an action with duration and color.
- Parameters
-
duration | Duration time, in seconds. |
color | It's a Color3B type. |
- Returns
- An autoreleased TintTo object.
◆ update()
virtual void update |
( |
float | time | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: