C4 Engine
C4 Engine API Documentation

class FadeSprocket

Defined in:  C4Sprockets.h
The FadeSprocket class causes one of a widget's colors to fade to a specific value.
Definition

class FadeSprocket final : public Sprocket

Constructor

FadeSprocket(const ColorRGBA& color, float time);

Parameters
color The final fade color.
time The time over which the fade occurs, in milliseconds.
Description
The FadeSprocket class causes the color of a widget to smoothly change to the value specified by the color parameter over the time specified by the time parameter.
Base Classes
Sprocket A FadeSprocket is a specific type of sprocket.