pub enum ColorModel {
Trichromatic(TrichromaticEncodingSystem),
CMYK,
HSV,
LAB,
}
Expand description
All supported color models.
Variants§
Trichromatic(TrichromaticEncodingSystem)
An image represented by three channels or planes: Includes RGB, YUV, and XYZ.
CMYK
The CMYK color model is a subtractive color model, based on the CMY color model, used in color printing, and is also used to describe the printing process itself. CMYK refers to the four ink plates used in some color printing: cyan, magenta, yellow, and key.
HSV
HSL and HSV are alternative representations of the RGB color model, designed in the 1970s by computer graphics researchers to more closely align with the way human vision perceives color-making attributes.
LAB
The CIELAB color space expresses color as three values: L* for perceptual lightness, and a* and b* for the four unique colors of human vision: red, green, blue, and yellow.
Implementations§
Source§impl ColorModel
impl ColorModel
Sourcepub fn get_default_components(self) -> usize
pub fn get_default_components(self) -> usize
Returns the number of components of a color model.
Trait Implementations§
Source§impl Clone for ColorModel
impl Clone for ColorModel
Source§fn clone(&self) -> ColorModel
fn clone(&self) -> ColorModel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more