Trait palette::Hue [−][src]
pub trait Hue: GetHue { fn with_hue<H: Into<Self::Hue>>(&self, hue: H) -> Self; fn shift_hue<H: Into<Self::Hue>>(&self, amount: H) -> Self; }
A trait for colors where the hue can be manipulated without conversion.
Required methods
fn with_hue<H: Into<Self::Hue>>(&self, hue: H) -> Self
[src]
Return a new copy of self
, but with a specific hue.
fn shift_hue<H: Into<Self::Hue>>(&self, amount: H) -> Self
[src]
Return a new copy of self
, but with the hue shifted by amount
.
Implementors
impl<S, T> Hue for Hsl<S, T> where
T: FloatComponent,
S: RgbStandard,
[src]
impl<S, T> Hue for Hsl<S, T> where
T: FloatComponent,
S: RgbStandard,
[src]impl<S, T> Hue for Hsv<S, T> where
T: FloatComponent,
S: RgbStandard,
[src]
impl<S, T> Hue for Hsv<S, T> where
T: FloatComponent,
S: RgbStandard,
[src]impl<S, T> Hue for Hwb<S, T> where
T: FloatComponent,
S: RgbStandard,
[src]
impl<S, T> Hue for Hwb<S, T> where
T: FloatComponent,
S: RgbStandard,
[src]impl<Wp, T> Hue for Hsluv<Wp, T> where
T: FloatComponent,
Wp: WhitePoint,
[src]
impl<Wp, T> Hue for Hsluv<Wp, T> where
T: FloatComponent,
Wp: WhitePoint,
[src]impl<Wp, T> Hue for Lch<Wp, T> where
T: FloatComponent,
Wp: WhitePoint,
[src]
impl<Wp, T> Hue for Lch<Wp, T> where
T: FloatComponent,
Wp: WhitePoint,
[src]