new Transition(start, finish)
Represents a timed transition from one value to another.
Parameters
Name | Type | Description |
---|---|---|
start |
any | The starting value. |
finish |
any | The finishing value. |
Members
easeFunction :easeFunction
The easing function to use while transitioning.
- Default Value:
- Tily.utility.lerp
(nullable) finishedCallback :finishedCallback
A callback function that will be called once the transition has finished.
- Default Value:
- null
Methods
update(elapsedTime) → {any}
Update the transition.
Parameters
Name | Type | Description |
---|---|---|
elapsedTime |
number | The number of seconds that have elapsed since the last update. |
Returns
An interpolated value between the start and finish values.
- Type
- any