[−][src]Trait palette::Hue
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
Return a new copy of self, but with a specific hue.
fn shift_hue<H: Into<Self::Hue>>(&self, amount: H) -> Self
Return a new copy of self, but with the hue shifted by amount.
Implementors
impl<C: Hue, T: Clone> Hue for Alpha<C, T>[src]
fn with_hue<H: Into<C::Hue>>(&self, hue: H) -> Alpha<C, T>[src]
fn shift_hue<H: Into<C::Hue>>(&self, amount: H) -> Alpha<C, T>[src]
impl<S, T> Hue for Color<S, T> where
T: Float + Component,
S: RgbSpace, [src]
T: Float + Component,
S: RgbSpace,
fn with_hue<H: Into<Self::Hue>>(&self, hue: H) -> Color<S, T>[src]
fn shift_hue<H: Into<Self::Hue>>(&self, amount: H) -> Color<S, T>[src]
impl<S, T> Hue for Hsl<S, T> where
T: Component + Float,
S: RgbSpace, [src]
T: Component + Float,
S: RgbSpace,
fn with_hue<H: Into<Self::Hue>>(&self, hue: H) -> Hsl<S, T>[src]
fn shift_hue<H: Into<Self::Hue>>(&self, amount: H) -> Hsl<S, T>[src]
impl<S, T> Hue for Hsv<S, T> where
T: Component + Float,
S: RgbSpace, [src]
T: Component + Float,
S: RgbSpace,
fn with_hue<H: Into<Self::Hue>>(&self, hue: H) -> Hsv<S, T>[src]
fn shift_hue<H: Into<Self::Hue>>(&self, amount: H) -> Hsv<S, T>[src]
impl<S, T> Hue for Hwb<S, T> where
T: Component + Float,
S: RgbSpace, [src]
T: Component + Float,
S: RgbSpace,
fn with_hue<H: Into<Self::Hue>>(&self, hue: H) -> Hwb<S, T>[src]
fn shift_hue<H: Into<Self::Hue>>(&self, amount: H) -> Hwb<S, T>[src]
impl<Wp, T> Hue for Lch<Wp, T> where
T: Component + Float,
Wp: WhitePoint, [src]
T: Component + Float,
Wp: WhitePoint,