Skip to content
ClassTweens & Motion@public

FlxColorTween

Interpolates packed ARGB colors and optionally updates a sprite-like target.

ts
export declare class FlxColorTween extends FlxTween

Properties

PropertyModifiersTypeDescription
color-number-
sprite-FlxColorTweenTarget | null-

Methods

destroy()

ts
destroy(): void

Returns: void

tween()

ts
tween(duration: number, fromColor: FlxTweenColorValue, toColor: FlxTweenColorValue, sprite?: FlxColorTweenTarget | null): this

Parameters:

ParameterTypeDescription
durationnumber-
fromColorFlxTweenColorValue-
toColorFlxTweenColorValue-
spriteFlxColorTweenTarget | null-

Returns: this

Released under the MIT License.