pub enum Space {
SRGB,
HSV,
LRGB,
XYZ,
LAB,
LCH,
}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. Currently using the wikipedia formula. BABL uses a different one. Not sure which is most correct…
LAB
CIE LAB (Lightness a/b).
Calculated in illuminant D65 unless the D50 features flag is passed.
LCH
CIE LCh (Lightness Chroma Hue). Cylindrical version of CIE LAB.
Trait Implementations§
source§impl PartialEq for Space
impl PartialEq for Space
impl 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