pub enum Space {
SRGB,
HSV,
LRGB,
XYZ,
LAB,
LCH,
OKLAB,
OKLCH,
JZAZBZ,
JZCZHZ,
}Expand description
Defines colorspace pixels will take.
Variants§
SRGB
Gamma-corrected sRGB.
HSV
Hue Saturation Value. A UCS typically preferred for modern applications
LRGB
Linear RGB. IEC 61966-2-1:1999 transferred
XYZ
1931 CIE XYZ @ D65.
LAB
CIE Lab*. Lightness, red/green chromacity, yellow/blue chromacity. 1976 UCS with many known flaws. Most other LAB spaces derive from this
LCH
CIE LCHab. Lightness, Chroma, Hue Cylindrical version of CIE Lab*.
OKLAB
Oklab https://bottosson.github.io/posts/oklab/ 2020 UCS, used in CSS Color Module Level 4
OKLCH
Cylindrical version of OKLAB.
JZAZBZ
JzAzBz https://opg.optica.org/oe/fulltext.cfm?uri=oe-25-13-15131 2017 UCS, intended for uniform hue and HDR colors
JZCZHZ
Cylindrical version of JzAzBz
Implementations§
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