Tweens a color's red, green, and blue properties independently. Can also tween an alpha value.
Constructor
Variables
Functions
View source
Parameters:
tween (duration : Float, fromColor : Color, toColor : Color, fromAlpha : Float = 1, toAlpha : Float = 1, ease : EaseFunction) : Void
Tweens the color to a new color and an alpha to a new alpha.
Parameters:
duration | Duration of the tween. | |
fromColor | Start color. | |
toColor | End color. | |
fromAlpha | Start alpha | |
toAlpha | End alpha. | |
ease | Optional easer function. |