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

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