Module animations

Module animations 

Source
Expand description

The animation system

Structs§

AnimationDriver
The AnimationDriver
Instant
Represent an instant, in milliseconds since the AnimationDriver’s initial_instant

Enums§

EasingCurve
The representation of an easing curve, for animations

Constants§

CURRENT_ANIMATION_DRIVER
This is the default instance of the animation driver that’s used to advance all property animations at the same time.

Functions§

animation_tick
Same as current_tick, but also register that one should be running animation on next frame
current_tick
The current instant that is to be used for animation using this function register the current binding as a dependency
easing_curve
map a value between 0 and 1 to another value between 0 and 1 according to the curve
update_animations
Update the global animation time to the current time