ClassTweens & Motion@public
FlxColorTween
Interpolates packed ARGB colors and optionally updates a sprite-like target.
ts
export declare class FlxColorTween extends FlxTweenProperties
| Property | Modifiers | Type | Description |
|---|---|---|---|
color | - | number | - |
sprite | - | FlxColorTweenTarget | null | - |
Methods
destroy()
ts
destroy(): voidReturns: void
tween()
ts
tween(duration: number, fromColor: FlxTweenColorValue, toColor: FlxTweenColorValue, sprite?: FlxColorTweenTarget | null): thisParameters:
| Parameter | Type | Description |
|---|---|---|
duration | number | - |
fromColor | FlxTweenColorValue | - |
toColor | FlxTweenColorValue | - |
sprite | FlxColorTweenTarget | null | - |
Returns: this