Trait color::FloatColor[][src]

pub trait FloatColor<T>: Color<T> {
    fn saturate(self) -> Self;
}

Required methods

fn saturate(self) -> Self[src]

Loading content...

Implementors

impl<T: FloatChannel> FloatColor<T> for Hsv<T>[src]

fn saturate(self) -> Hsv<T>[src]

Normalizes the components of the color. Modulo 360 is applied to the h component, and s and v are clamped to the range (0,1).

impl<T: FloatChannel, S> FloatColor<T> for Luma<T, S>[src]

fn saturate(self) -> Luma<T, S>[src]

Clamps the components of the color to the range (0,1).

impl<T: FloatChannel, S> FloatColor<T> for Rgb<T, S>[src]

fn saturate(self) -> Rgb<T, S>[src]

Clamps the components of the color to the range (0,1).

Loading content...