pub enum Space {
SRGB,
HSV,
LRGB,
XYZ,
LAB,
LCH,
OKLAB,
OKLCH,
}Expand description
Defines colorspace pixels will take.
Variants§
SRGB
Gamma-corrected sRGB.
HSV
Hue Saturation Value. Legacy format, LCH is preferred.
LRGB
“Linear Light RGB”, aka no perceptual gamma.
XYZ
CIE XYZ @ D65.
LAB
CIE LAB (Lightness a/b).
LCH
CIE LCh (Lightness Chroma Hue). Cylindrical version of CIE LAB.
OKLAB
OKLCH
Polar version of OK Lab
Trait Implementations§
source§impl PartialEq for Space
impl PartialEq for Space
source§impl PartialOrd for Space
impl PartialOrd for Space
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Space
impl Eq for Space
impl StructuralEq for Space
impl StructuralPartialEq for Space
Auto Trait Implementations§
impl RefUnwindSafe for Space
impl Send for Space
impl Sync for Space
impl Unpin for Space
impl UnwindSafe for Space
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more