Skip to main content

Module oklab

Module oklab 

Source
Expand description

Oklab relative to any supported RGB primaries.

OklabSpace holds the two matrices that planar Oklab kernels need and does scalar conversions. The constants are CSS Color 4’s, for Björn Ottosson’s Oklab.

Structs§

OklabSpace
Oklab relative to one set of RGB primaries.

Constants§

LMS_CBRT_FROM_OKLAB
Inverse of M2: Oklab [L, a, b] → LMS^(1/3).
LMS_FROM_XYZ
M1 step 1: CIE XYZ (D65) → LMS.
OKLAB_FROM_LMS_CBRT
M2: LMS^(1/3) → Oklab [L, a, b]. Universal, primaries-independent.
XYZ_FROM_LMS
Inverse of M1: LMS → CIE XYZ (D65).