Class ColorAnimation
Defines an animation that blends between two colors.
Inherited Members
Namespace: Ritchie.Toolbox.Animation
Assembly: Ritchie.Toolbox.dll
Syntax
public sealed class ColorAnimation : Animation<Color>, IAnimation, IAnimationHandle
Constructors
ColorAnimation(CurveFunction, float, Color, Color, Action<Color>)
Defines an animation that blends between two colors.
Declaration
public ColorAnimation(CurveFunction curveFunction, float duration, Color from, Color to, Action<Color> callback)
Parameters
Type | Name | Description |
---|---|---|
CurveFunction | curveFunction | The blend curve to use for this animation. |
float | duration | The length, in seconds, of the animation. |
Color | from | The color to start from. |
Color | to | The color to blend to. |
Action<Color> | callback | A callback to execute on each animation step. |