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

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>
; }
Expand description

A trait for colors where the hue can be manipulated without conversion.

Required methods

Return a new copy of self, but with a specific hue.

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

Implementors