Skip to main content

mix_oklab

Function mix_oklab 

Source
pub fn mix_oklab(a: Color, b: Color, t: f64) -> Color
Expand description

Blend two colors in OKLab by t, alpha linearly. t outside 0..=1 extrapolates the lightness and hue axes and clamps the result into gamut.

Day API ↩ Guides· daybrite.dev