Trait nannou::color::Hue [−][src]
pub trait Hue: GetHue { pub fn with_hue<H>(&self, hue: H) -> Self
where
H: Into<Self::Hue>; pub fn shift_hue<H>(&self, amount: H) -> Self
where
H: Into<Self::Hue>; }
A trait for colors where the hue can be manipulated without conversion.
Required methods
pub fn with_hue<H>(&self, hue: H) -> Self where
H: Into<Self::Hue>,
[src]
H: Into<Self::Hue>,
Return a new copy of self
, but with a specific hue.
pub fn shift_hue<H>(&self, amount: H) -> Self where
H: Into<Self::Hue>,
[src]
H: Into<Self::Hue>,
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: Clone,
[src]
C: Hue,
T: Clone,
pub fn with_hue<H>(&self, hue: H) -> Alpha<C, T> where
H: Into<<C as GetHue>::Hue>,
[src]
H: Into<<C as GetHue>::Hue>,
pub fn shift_hue<H>(&self, amount: H) -> Alpha<C, T> where
H: Into<<C as GetHue>::Hue>,
[src]
H: Into<<C as GetHue>::Hue>,
impl<S, T> Hue for Hsl<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
pub fn with_hue<H>(&self, hue: H) -> Hsl<S, T> where
H: Into<<Hsl<S, T> as GetHue>::Hue>,
[src]
H: Into<<Hsl<S, T> as GetHue>::Hue>,
pub fn shift_hue<H>(&self, amount: H) -> Hsl<S, T> where
H: Into<<Hsl<S, T> as GetHue>::Hue>,
[src]
H: Into<<Hsl<S, T> as GetHue>::Hue>,
impl<S, T> Hue for Hsv<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
pub fn with_hue<H>(&self, hue: H) -> Hsv<S, T> where
H: Into<<Hsv<S, T> as GetHue>::Hue>,
[src]
H: Into<<Hsv<S, T> as GetHue>::Hue>,
pub fn shift_hue<H>(&self, amount: H) -> Hsv<S, T> where
H: Into<<Hsv<S, T> as GetHue>::Hue>,
[src]
H: Into<<Hsv<S, T> as GetHue>::Hue>,
impl<S, T> Hue for Hwb<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
pub fn with_hue<H>(&self, hue: H) -> Hwb<S, T> where
H: Into<<Hwb<S, T> as GetHue>::Hue>,
[src]
H: Into<<Hwb<S, T> as GetHue>::Hue>,
pub fn shift_hue<H>(&self, amount: H) -> Hwb<S, T> where
H: Into<<Hwb<S, T> as GetHue>::Hue>,
[src]
H: Into<<Hwb<S, T> as GetHue>::Hue>,
impl<Wp, T> Hue for Lch<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,