1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! # animato-driver
//!
//! Runtime management for Animato animations.
//!
//! - [`AnimationDriver`] — owns and ticks many animations; auto-removes completed ones.
//! - [`Clock`] — trait abstracting time sources.
//! - [`WallClock`] — real wall-clock time via `std::time::Instant`.
//! - [`ManualClock`] — caller-driven time.
//! - [`MockClock`] — fixed-step clock for tests.
//! - [`scroll::ScrollDriver`] — animations driven by scroll position (v0.8.0).
//! - [`scroll::ScrollClock`] — scroll-backed [`Clock`] implementation (v0.8.0).
//!
//! ## Quick Start
//!
//! ```rust
//! use animato_driver::{AnimationDriver, MockClock, Clock};
//! use animato_tween::Tween;
//! use animato_core::{Easing, Update};
//!
//! let mut driver = AnimationDriver::new();
//! let id = driver.add(
//! Tween::new(0.0_f32, 100.0)
//! .duration(1.0)
//! .easing(Easing::EaseOutCubic)
//! .build()
//! );
//!
//! let mut clock = MockClock::new(1.0 / 60.0);
//! for _ in 0..61 {
//! driver.tick(clock.delta());
//! }
//! assert!(!driver.is_active(id));
//! ```
pub use ;
pub use ;
pub use ;