Oklab
A color in the Oklab uniform color space, which represents colors in dev.kdrag0n.colorkt.ucs.lab.Lab form. This color space is designed for overall uniformity and does not assume viewing conditions.
Note that this implementation uses a white point of D65, like sRGB. Linear sRGB is used as the intermediate color space.
See also
Constructors
Types
Functions
Properties
Extensions
clip To Linear Srgb
Link copied to clipboard
fun Oklab.clipToLinearSrgb(method: OklabGamut.ClipMethod = ClipMethod.PRESERVE_LIGHTNESS, alpha: Double = 0.05): LinearSrgb
Content copied to clipboard
Convert this Oklab color to linear sRGB, and clip it to sRGB gamut boundaries if it's not already within gamut.