Fork me on GitHub
View source

package haxepunk.tweens.misc

class NumTween


extends Tween

Tweens a numeric value.

Constructor

View source

new (type : TweenType) : Void

Constructor.


Parameters:
complete   

Optional completion callback.

type   

Tween type.

Variables

value : Float

The current value.

Functions

View source

tween (fromValue : Float, toValue : Float, duration : Float, ease : EaseFunction) : Void

Tweens the value from one value to another.


Parameters:
fromValue   

Start value.

toValue   

End value.

duration   

Duration of the tween.

ease   

Optional easer function.