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