clip To Linear Srgb
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.
Out-of-gamut colors are mapped using gamut intersection in a 2D plane, and hue is always preserved. Lightness and chroma are changed depending on the clip method; see ClipMethod for details.
Return
clipped color in linear sRGB