Class: TweenUtils

TweenUtils

A static helper class to handle tweens


new TweenUtils()

Methods


<static> tint(subject, tint, duration [, easing] [, autostart] [, delay] [, repeat] [, yoyo])

Tweens a sprite to a certain tint value

Parameters:
Name Type Argument Default Description
subject PIXI.Sprite

The subject you want to tint

tint Number

The destination tint value

duration Number

Duration in seconds

easing Phaser.Easing | string <optional>
Phaser.Easing.Default

The easing function

autostart boolean <optional>
false

Auto-start the tween immediately

delay Number <optional>
0

Tween delay

repeat Number <optional>
0

Number of times should the tween be repeated. (-1 = forever)

yoyo Number <optional>
false

Yoyo repeat