atagen

monolith

public
Star0
Watch0
e01b19ca3e20e402a7bc4e790fe326f738b09ad8
1
ssh://brewery@pls.lobotomise.me:33/atagen/monolith.git
crates/motion/src/lib.rsRust14 lines480 B
1
//! Curves and timelines for phased animations.
2
//!
3
//! Every phase lasts exactly its configured duration. Progress inside a phase
4
//! runs from 0 to 1 through a cubic bezier easing curve. Times are presentation
5
//! timestamps in nanoseconds, so callers sample at the vblank a frame targets
6
//! rather than at render time.
7
8
mod curve;
9
mod timeline;
10
mod velocity;
11
12
pub use curve::CubicBezier;
13
pub use timeline::{Position, Timeline};
14
pub use velocity::{Edges, group_initial_slope};