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
//! # animato-color
//!
//! Perceptual color interpolation wrappers for Animato.
//!
//! This crate adapts [`palette`] color types to Animato's [`animato_core::Interpolate`]
//! trait. Wrap the color in the space you want to interpolate through, then
//! use it with `Tween<T>`, `KeyframeTrack<T>`, or any other Animato primitive.
//!
//! ## Quick Start
//!
//! ```rust
//! use animato_color::InLab;
//! use animato_core::Interpolate;
//! use palette::Srgb;
//!
//! let red = InLab::new(Srgb::new(1.0, 0.0, 0.0));
//! let blue = InLab::new(Srgb::new(0.0, 0.0, 1.0));
//! let midpoint = red.lerp(&blue, 0.5).into_inner();
//!
//! assert!(midpoint.red > 0.0);
//! assert!(midpoint.blue > 0.0);
//! ```
//!
//! ## Feature Flags
//!
//! | Feature | Effect |
//! |---------|--------|
//! | `std` | Enables `std` support in dependencies |
//! | `serde` | Derives `Serialize`/`Deserialize` on wrapper types |
pub use ;