[−][src]Trait nannou::color::Limited
A trait for clamping and checking if colors are within their ranges.
Required methods
fn is_valid(&self) -> bool
Check if the color's components are within the expected ranges.
fn clamp(&self) -> Self
Return a new color where the components has been clamped to the nearest valid values.
fn clamp_self(&mut self)
Clamp the color's components to the nearest valid values.
Implementors
impl<C, T> Limited for Alpha<C, T> where
C: Limited,
T: Float,
[src]
C: Limited,
T: Float,
impl<T> Limited for Hwb<T> where
T: Float,
[src]
T: Float,
impl<T> Limited for Lab<T> where
T: Float,
[src]
T: Float,
impl<T> Limited for Lch<T> where
T: Float,
[src]
T: Float,
impl<T> Limited for Luma<T> where
T: Float,
[src]
T: Float,
impl<T> Limited for Xyz<T> where
T: Float,
[src]
T: Float,
impl<T> Limited for Yxy<T> where
T: Float,
[src]
T: Float,
impl<T> Limited for Hsl<T> where
T: Float,
[src]
T: Float,
impl<T> Limited for Hsv<T> where
T: Float,
[src]
T: Float,
impl<T> Limited for Rgb<T> where
T: Float,
[src]
T: Float,