[−][src]Trait nannou::color::Hue
A trait for colors where the hue can be manipulated without conversion.
Required methods
fn with_hue(&self, hue: Self::Hue) -> Self
Return a new copy of self
, but with a specific hue.
fn shift_hue(&self, amount: Self::Hue) -> Self
Return a new copy of self
, but with the hue shifted by amount
.
Implementors
impl<C, T> Hue for Alpha<C, T> where
C: Hue,
T: Float,
[src]
C: Hue,
T: Float,
fn with_hue(&self, hue: <C as GetHue>::Hue) -> Alpha<C, T>
[src]
fn shift_hue(&self, amount: <C as GetHue>::Hue) -> Alpha<C, T>
[src]
impl<T> Hue for Color<T> where
T: Float,
[src]
T: Float,
fn with_hue(&self, hue: LabHue<T>) -> Color<T>
[src]
fn shift_hue(&self, amount: LabHue<T>) -> Color<T>
[src]
impl<T> Hue for Hwb<T> where
T: Float,
[src]
T: Float,
fn with_hue(&self, hue: RgbHue<T>) -> Hwb<T>
[src]
fn shift_hue(&self, amount: RgbHue<T>) -> Hwb<T>
[src]
impl<T> Hue for Lch<T> where
T: Float,
[src]
T: Float,
fn with_hue(&self, hue: LabHue<T>) -> Lch<T>
[src]
fn shift_hue(&self, amount: LabHue<T>) -> Lch<T>
[src]
impl<T> Hue for Hsl<T> where
T: Float,
[src]
T: Float,
fn with_hue(&self, hue: RgbHue<T>) -> Hsl<T>
[src]
fn shift_hue(&self, amount: RgbHue<T>) -> Hsl<T>
[src]
impl<T> Hue for Hsv<T> where
T: Float,
[src]
T: Float,