XcmsCIELabQueryMax(3)

hey bestie πŸ‘‹ welcome to XcmsCIELabQueryMax(3), aka the XLIB FUNCTIONS page for the CIE L*a*b* query squad. This is where you ask the screen β€œwhat’s the max chroma / max lightness / min lightness I can actually show for this hue?” and it hands you back CIE L*a*b* coordinates. We're keeping every detail, no cap πŸ’…

✨ NAME ✨

XcmsCIELabQueryMaxC, XcmsCIELabQueryMaxL, XcmsCIELabQueryMaxLC, XcmsCIELabQueryMinL β€” obtain the CIE L*a*b* coordinates πŸŽ€

πŸ› οΈ SYNTAX πŸ› οΈ

These four all return a Status:

       Status XcmsCIELabQueryMaxC(XcmsCCC ccc, XcmsFloat hue_angle, XcmsFloat
              L_star, XcmsColor *color_return);

       Status XcmsCIELabQueryMaxL(XcmsCCC ccc, XcmsFloat hue_angle, XcmsFloat
              chroma, XcmsColor *color_return);

       Status XcmsCIELabQueryMaxLC(XcmsCCC ccc, XcmsFloat hue_angle, XcmsColor
              *color_return);

       Status XcmsCIELabQueryMinL(XcmsCCC ccc, XcmsFloat hue_angle, XcmsFloat
              chroma, XcmsColor *color_return);

🌸 ARGUMENTS 🌸

  • ccc β€” specifies the CCC. Heads up, bestie: the CCC's Client White Point and White Point Adjustment procedures are ignored. πŸ‘€
  • chroma β€” specifies the chroma at which to find maximum lightness (MaxL) or minimum lightness (MinL). πŸ“
  • color_return β€” returns the CIE L*a*b* coordinates of maximum chroma (MaxC and MaxLC), maximum lightness (MaxL), or minimum lightness (MinL) displayable by the screen for the given hue angle and lightness (MaxC), hue angle and chroma (MaxL and MinL), or hue angle (MaxLC). The white point associated with the returned color specification is the Screen White Point. The value returned in the pixel member is undefined. 😭
  • hue_angle β€” specifies the hue angle (in degrees) at which to find maximum chroma (MaxC and MaxLC), maximum lightness (MaxL), or minimum lightness (MinL). 🌈
  • L_star β€” specifies the lightness (L*) at which to find maximum chroma (MaxC). ⭐

πŸ’– DESCRIPTION πŸ’–

XcmsCIELabQueryMaxC is the β€œgive me max chroma” one: given a hue angle and lightness, it finds the point of maximum chroma displayable by the screen. It returns this point in CIE L*a*b* coordinates. Iconic. πŸ‘‘

XcmsCIELabQueryMaxL is the β€œgive me max lightness” one: given a hue angle and chroma, it finds the point in CIE L*a*b* color space of maximum lightness (L*) displayable by the screen. It returns this point in CIE L*a*b* coordinates. And listen: an XcmsFailure return value usually indicates that the given chroma is beyond maximum for the given hue angle. So if it fails, that chroma was doing too much πŸ’€

XcmsCIELabQueryMaxLC is the β€œjust give me the max chroma, periodt” one: given a hue angle, it finds the point of maximum chroma displayable by the screen. It returns this point in CIE L*a*b* coordinates. Slay. ✨

XcmsCIELabQueryMinL is the β€œgive me min lightness” one: given a hue angle and chroma, it finds the point of minimum lightness (L*) displayable by the screen. It returns this point in CIE L*a*b* coordinates. Same caveat, bestie: an XcmsFailure return value usually indicates that the given chroma is beyond maximum for the given hue angle. πŸ™ˆ

πŸ”— SEE ALSO πŸ”—


okay bye bestie 🫢 this page is from X Version 11, libX11 1.8.14, and the footer’s date situation is literally β€œnot listed” β€” so no invented date, just facts and vibes πŸ’‹βœ¨

πŸ“¦ where this page comes from