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

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.

Loading content...

Implementors

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

impl<T> Hue for Color<T> where
    T: Float
[src]

impl<T> Hue for Hwb<T> where
    T: Float
[src]

impl<T> Hue for Lch<T> where
    T: Float
[src]

impl<T> Hue for Hsl<T> where
    T: Float
[src]

impl<T> Hue for Hsv<T> where
    T: Float
[src]

Loading content...