Tween

Tween

Component responsible for animations.

Constructor

new Tween(into, to, from)

Source:
Parameters:
Name Type Description
into T
to T
from T

Classes

Tween

Members

_duration :number

Source:
Type:
  • number

_repeat :boolean

Source:
Type:
  • boolean

active :boolean

Source:
Type:
  • boolean

Methods

chain(next)

Source:
Parameters:
Name Type Description
next Tween.<T>

duration(t)

Source:
Parameters:
Name Type Description
t number

easing(callback)

Source:
Parameters:
Name Type Description
callback EasingFunc

from(x)

Source:
Parameters:
Name Type Description
x T

interpolant(callback)

Source:
Parameters:
Name Type Description
callback LerpFunc

onUpdate(callback)

Source:
Parameters:
Name Type Description
callback TweenUpdate.<T>

to(x)

Source:
Parameters:
Name Type Description
x T

(static) update(tween, dt)

Source:
Parameters:
Name Type Description
tween Tween.<U>
dt number