Trait rin::color::FloatColor[][src]

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

Required methods

pub fn saturate(self) -> Self[src]

Loading content...

Implementors

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

pub fn saturate(self) -> Hsv<T, Srgb>[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, S> FloatColor<T> for Luma<T, S> where
    T: FloatChannel
[src]

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

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

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

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

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

Loading content...