Struct AnimationHelper
Helper to handle animation progress.
NOT USED
Properties
Type | Name | Description |
long
|
elapsed [get]
|
Returns time elapsed since start
|
bool
|
finished [get]
|
Returns true if animation is finished
|
long
|
interval [get]
|
Get current time interval
|
long
|
interval [set]
|
Override current time interval, retaining the same progress %
|
int
|
progress [get]
|
Returns animation progress in interval 0..maxProgress while timeElapsed is between 0 and maxInterval; when interval exceeded, progress is maxProgress
|
Methods
Name | Description |
animate
(time)
|
Adds elapsed time; returns animation progress in interval 0..maxProgress while timeElapsed is between 0 and maxInterval; when interval exceeded, progress is maxProgress
|
getProgress
(maxProgress)
|
Returns animation progress in interval 0..maxProgress while timeElapsed is between 0 and maxInterval; when interval exceeded, progress is maxProgress
|
restart
()
|
Restart with same max interval and progress
|
start
(maxInterval, maxProgress)
|
Start new animation interval
|