Trait palette::Hue
[−]
[src]
pub trait Hue: GetHue { fn with_hue(&self, hue: Self::Hue) -> Self; fn shift_hue(&self, amount: Self::Hue) -> Self; }
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: Hue, T: Float> Hue for Alpha<C, T>
impl<Wp, T> Hue for Lch<Wp, T> where
T: Float,
Wp: WhitePoint,impl<S, T> Hue for Hsv<S, T> where
T: Float,
S: RgbSpace,impl<S, T> Hue for Hsl<S, T> where
T: Float,
S: RgbSpace,impl<S, T> Hue for Hwb<S, T> where
T: Float,
S: RgbSpace,impl<S, T> Hue for Color<S, T> where
T: Float,
S: RgbSpace,