[][src]Trait nannou::color::Hue

pub trait Hue: GetHue {
    fn with_hue<H>(&self, hue: H) -> Self
    where
        H: Into<Self::Hue>
;
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

fn with_hue<H>(&self, hue: H) -> Self where
    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>, 

Return a new copy of self, but with the hue shifted by amount.

Loading content...

Implementors

impl<C, T> Hue for Alpha<C, T> where
    C: Hue,
    T: Clone
[src]

impl<S, T> Hue for Hwb<S, T> where
    S: RgbSpace,
    T: Component + Float
[src]

impl<S, T> Hue for Hsl<S, T> where
    S: RgbSpace,
    T: Component + Float
[src]

impl<S, T> Hue for Hsv<S, T> where
    S: RgbSpace,
    T: Component + Float
[src]

impl<Wp, T> Hue for Lch<Wp, T> where
    T: Component + Float,
    Wp: WhitePoint
[src]

Loading content...