Expand description
Structs§
- Oklab
- A color in Oklab is represented with three coordinates, similar to how CIELAB works, but with better perceptual properties.
- Rgb
- Interoperable with the
rgb
crate. ARed + Green + Blue
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 rgb - oklab_
to_ srgb_ f32 - Converts
Oklab
to standard sRGB color as a float in range 0..=1 - srgb_
f32_ to_ oklab - Converts sRGB as a float in range 0..=1 to
Oklab
(in usual Oklab range where a,b can be negative and below 1) - srgb_
to_ oklab - Converts regular 8-bit sRGB color to
Oklab
rgb
Type Aliases§
- Linear
Rgb - Linearized sRGB (AKA linear light RGB, sRGB with gamma 1.0)