Trait nannou::color::Component [−][src]
pub trait Component: Copy + Zero + PartialOrd<Self> + NumCast {
const LIMITED: bool;
fn max_intensity() -> Self;
fn convert<T>(&self) -> T
where
T: Component;
}
Expand description
Common trait for color components.
Associated Constants
Required methods
fn max_intensity() -> Self
fn max_intensity() -> Self
The highest displayable value this component type can reach. Higher values are allowed, but they may be lowered to this before converting to another format.