[][src]Trait color::FloatColor

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

Required methods

fn saturate(self) -> Self

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> FloatColor<T> for Rgb<T>[src]

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

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

Loading content...