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
45
46
47
48
49
50
51
52
53
54
//! # animato-tween
//!
//! `Tween<T>` — single-value animation from a start to an end value over time.
//!
//! This crate is fully `no_std`-compatible and requires no heap allocation.
//!
//! ## Quick Start
//!
//! ```rust
//! use animato_tween::{Tween, Loop};
//! use animato_core::{Easing, Update};
//!
//! let mut tween = Tween::new(0.0_f32, 100.0)
//! .duration(1.0)
//! .easing(Easing::EaseOutCubic)
//! .build();
//!
//! // Advance by 0.5 seconds (half the duration):
//! tween.update(0.5);
//! assert!(tween.value() > 50.0); // EaseOut front-loads motion
//! assert!(!tween.is_complete());
//!
//! tween.update(0.5);
//! assert!(tween.is_complete());
//! assert_eq!(tween.value(), 100.0);
//! ```
//!
//! ## Feature Flags
//!
//! | Feature | Effect |
//! |---------|--------|
//! | `std` | Enables std-dependent features (forwarded to `animato-core`) |
//! | `serde` | Derives `Serialize`/`Deserialize` on public types |
extern crate alloc;
pub use TweenBuilder;
pub use ;
pub use Loop;
pub use ;
pub use ;