Crate silver_animation

Crate silver_animation 

Source

Structs§

AnimationTimer
This struct decides what frame count the animation is currently at, it automatically resets to 0.
BasicAnimationContainer
The struct used to turn a BasicAnimation into a ContainedAnimation
Linear
The backbone of both Linear animation systems.
LinearConfig
A more advanced animation than SimpleLinearConfig. It follows the same idea however you are in full control over what is used to draw images and how they are drawn.
SimpleLinearConfig
The easiest animation system. It renders the images in order, switching to the next one based on the animation speed.

Traits§

AnimationShape
This is trait used to define the location and the size of an animation This way you can base your animations of Rectangles, Circles, etc
BasicAnimation
A bare bones trait that is simply used to draw an animation at the given position
ContainedAnimation
The same as BasicAnimation, however ContainedAnimations are in control of their position
EditableState
This should be implemented if outside sources can change the state the animation is in.
Resetable
This trait can be implemented if an animation can be reset (Go back to the first frame)