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
fn from_rgb(rgb: Rgb) -> Self
Constructs from color value rgb
in RGB color space.
fn to_rgb(&self) -> Rgb
Converts self to a color value in RGB color space.