OkLch

data class OkLch(val l: Float, val c: Float, val h: Float)

OkLCH representation with normalized, user-friendly ranges.

  • l: 0..100 (lightness percent)

  • c: 0..100 (chroma percent, mapped to internal 0.0, 0.4)

  • h: hue in degrees 0, 360

Constructors

Link copied to clipboard
constructor(l: Float, c: Float, h: Float)

Properties

Link copied to clipboard
val c: Float
Link copied to clipboard
val h: Float
Link copied to clipboard
val l: Float

Functions

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