| 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}; |