Skip to main content

to_oklab

Function to_oklab 

Source
pub fn to_oklab(color: Color) -> [f32; 4]
Expand description

Converts a color to OKLab: [L, a, b, alpha]. Equal steps in this space look like equal steps to the eye, which is not true of sRGB.