Skip to content

Commit

Permalink
Rename CIE LAB/LCH docs && strings
Browse files Browse the repository at this point in the history
From L*a*b* back to just LAB and LCH

Its way less ugly now
  • Loading branch information
Beinsezii committed Jan 30, 2024
1 parent 799743b commit 3bd37dc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,12 @@ pub enum Space {
/// 1931 CIE XYZ @ D65.
XYZ,

/// CIE L*a*b*. Lightness, red/green chromacity, yellow/blue chromacity.
/// CIE LAB. Lightness, red/green chromacity, yellow/blue chromacity.
/// 1976 UCS with many known flaws. Most other LAB spaces derive from this
CIELAB,

/// CIE L*C*Hab. Lightness, Chroma, Hue
/// Cylindrical version of CIE L*a*b*.
/// CIE LCH(ab). Lightness, Chroma, Hue
/// Cylindrical version of CIE LAB.
CIELCH,

/// Oklab <https://bottosson.github.io/posts/oklab/>
Expand All @@ -323,8 +323,8 @@ impl TryFrom<&str> for Space {
"lrgb" | "rgb" => Ok(Space::LRGB),
"xyz" | "cie xyz" | "ciexyz" => Ok(Space::XYZ),
// extra values so you can move to/from str
"lab" | "cie lab" | "cielab" | "cie l*a*b*" => Ok(Space::CIELAB),
"lch" | "cie lch" | "cielch" | "cie l*c*hab" => Ok(Space::CIELCH),
"lab" | "cie lab" | "cielab" => Ok(Space::CIELAB),
"lch" | "cie lch" | "cielch" => Ok(Space::CIELCH),
"oklab" => Ok(Space::OKLAB),
"oklch" => Ok(Space::OKLCH),
"jzazbz" => Ok(Space::JZAZBZ),
Expand All @@ -345,8 +345,8 @@ impl core::fmt::Display for Space {
Self::HSV => "HSV",
Self::LRGB => "RGB",
Self::XYZ => "CIE XYZ",
Self::CIELAB => "CIE L*a*b*",
Self::CIELCH => "CIE L*C*Hab",
Self::CIELAB => "CIE LAB",
Self::CIELCH => "CIE LCH",
Self::OKLAB => "Oklab",
Self::OKLCH => "Oklch",
Self::JZAZBZ => "JzAzBz",
Expand Down

0 comments on commit 3bd37dc

Please sign in to comment.