class flixel.tweens.misc.ColorTween extends FlxTween
Available on all platforms
Tweens a color's red, green, and blue properties * independently. Can also tween an alpha value.
Instance Fields
function tween(Duration:Float, FromColor:Int, ToColor:Int, ?FromAlpha:Float = 1, ?ToAlpha:Float = 1, ?Sprite:FlxSprite = null):ColorTween
Tweens the color to a new color and an alpha to a new alpha. * *
Duration | Duration of the tween. * |
FromColor | Start color. * |
ToColor | End color. * |
FromAlpha | Start alpha * |
ToAlpha | End alpha. * |
Sprite | Optional sprite object whose color to tween. * |
returns | The ColorTween. |