Skip to main content

Module anim

Module anim 

Source
Expand description

Animation toolkit — easing curves, springs, tweens and a tiny animator.

Everything is f32, allocation-free, and no_std-friendly in spirit. Drive it by feeding elapsed time (t in 0..1 for easings) or dt (seconds) for springs/animators.

Structs§

Spring
A critically-dampable spring (implicit-ish) — great for snappy UI motion.
Tween
A one-shot tween from fromto over duration seconds along a curve.

Enums§

Easing
Standard easing curves (Penner-style), all mapping t∈[0,1] → [0,1].

Functions§

ease
Convenience: ease a value between a and b by curve at parameter t.