⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.

Axmol Engine 3.0.0-dff292a
Loading...
Searching...
No Matches
TintBy Class Reference

Tints a Node that implements the NodeRGB protocol from current tint to a custom one. More...

#include <ActionInterval.h>

Inherits ActionInterval.

Public Member Functions

void update (float time) override
bool initWithDuration (float duration, int16_t deltaRed, int16_t deltaGreen, int16_t deltaBlue)
 initializes the action with duration and color
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.
void step (float dt) override
bool initWithDuration (float d)
 initializes the action

Static Public Member Functions

static TintBycreate (float duration, int16_t deltaRed, int16_t deltaGreen, int16_t deltaBlue)
 Creates an action with duration and color.

Detailed Description

Tints a Node that implements the NodeRGB protocol from current tint to a custom one.

Since
v0.7.2

Member Function Documentation

◆ create()

TintBy * create ( float duration,
int16_t deltaRed,
int16_t deltaGreen,
int16_t deltaBlue )
static

Creates an action with duration and color.

Parameters
durationDuration time, in seconds.
deltaRedDelta red color.
deltaGreenDelta green color.
deltaBlueDelta blue color.
Returns
An autoreleased TintBy object.

◆ update()

void update ( float time)
override
Parameters
timeIn seconds.

The documentation for this class was generated from the following file:
  • ActionInterval.h