Trait glm_color::ColorSpace [] [src]

pub trait ColorSpace {
    fn from_rgb(rgb: Rgb) -> Self;
    fn to_rgb(&self) -> Rgb;
}

ColorSpace is the representation and interpretation of color values.

The only requirement for a implementation is that it can be converted to and from linear RGB color space.

Required Methods

Constructs from color value rgb in RGB color space.

Converts self to a color value in RGB color space.

Implementors