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.

class FadeSprocket final : public Sprocket


FadeSprocket(const ColorRGBA& color, float time);

color The final fade color.
time The time over which the fade occurs, in milliseconds.
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.