prismatica 0.2.0

308 scientific colormaps as compile-time Rust constants
Documentation
1
2
3
4
5
6
7
8
9
10
//! Framework conversion traits.
//!
//! Provides generic traits for converting prismatica types into
//! framework-specific color types, gated behind optional features.

/// Trait for converting a prismatica [`Color`](crate::Color) to a framework-specific color type.
pub trait IntoFrameworkColor<T> {
    /// Convert this color into the framework's color type.
    fn into_framework_color(self) -> T;
}