OkLab

data class OkLab(val l: Float, val a: Float, val b: Float)

OkLAB representation with normalized, user-friendly ranges.

  • l: 0..100 (lightness percent)

  • a: -100..100 (green-red axis, mapped to internal -0.4, 0.4)

  • b: -100..100 (blue-yellow axis, mapped to internal -0.4, 0.4)

Constructors

Link copied to clipboard
constructor(l: Float, a: Float, b: Float)

Properties

Link copied to clipboard
val a: Float
Link copied to clipboard
val b: Float
Link copied to clipboard
val l: Float

Functions

Link copied to clipboard
fun toColor(alpha: Float = 1.0f): Color