pub enum ColorSpace {
Show 16 variants
RGB,
RGBA,
HSI,
HSL,
HSLA,
HSV,
HEX,
HEXA,
HWB,
CMYK,
XYZ,
YIQ,
YUV,
YCbCr,
Lab,
Unknown,
}Expand description
Color space enum.
Variants§
RGB
RGB color space.
RGB stands for red, green, and blue.
RGBA
RGBA color space.
RGBA stands for red, green, blue, and alpha.
HSI
HSI color space.
HSI stands for hue, saturation, and intensity.
HSL
HSL color space.
HSL stands for hue, saturation, and lightness.
HSLA
HSLA color space.
HSLA stands for hue, saturation, lightness, and alpha.
HSV
HSV color space.
HSV stands for hue, saturation, and value.
HEX
HEX stands for hexadecimal of RGB.
HEXA
HEXA stands for hexadecimal of RGBA.
HWB
HWB color space.
HWB stands for hue, whiteness, and blackness.
CMYK
CMYK color space.
CMYK means Cyan Magenta Yellow Black
XYZ
XYZ color space.
XYZ stands for X, Y, and Z.
YIQ
YIQ color space.
YIQ stands for luminance (Y), and the chrominance components I and Q.
YUV
YUV color Space.
YUV stands for luminance (Y), and the chrominance components U and V.
YCbCr
YCbCr color Space.
YCbCr stands for luminance (Y), and the chrominance components Cb and Cr.
Lab
Lab color space.
Lab stands for lightness, a, and b.
Unknown
Unknown color space.
To be used when the color space is not known.
Trait Implementations§
Source§impl Clone for ColorSpace
impl Clone for ColorSpace
Source§fn clone(&self) -> ColorSpace
fn clone(&self) -> ColorSpace
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more