Crate oklab[−][src]
Structs
Oklab | A color in Oklab is represented with three coordinates, similar to how CIELAB works, but with better perceptual properties. Oklab uses a D65 whitepoint, since this is what sRGB and other common color spaces use. |
RGB | The RGB pixel |
Functions
linear_srgb_to_oklab | Converts from linearized sRGB (in 0..1 range) to Oklab |
oklab_to_linear_srgb | Converts Oklab to linear sRGB (in 0..1 range) |
oklab_to_srgb | Converts Oklab to regular 8-bit sRGB color |
srgb_to_oklab | Converts regular 8-bit sRGB color to Oklab |