Srlab2

data class Srlab2(L: Double, a: Double, b: Double) : Lab

A color in the SRLAB2 uniform color space, which represents colors in dev.kdrag0n.colorkt.ucs.lab.Lab form. This color space is an improvement upon CIELAB using transformations from CIECAM02.

Linear sRGB is used as the intermediate color space.

See also

Constructors

Srlab2
Link copied to clipboard
fun Srlab2(L: Double, a: Double, b: Double)

Types

Companion
Link copied to clipboard
object Companion

Functions

toLinearSrgb
Link copied to clipboard
fun toLinearSrgb(): LinearSrgb

Convert this color to the linear sRGB color space.

Properties

a
Link copied to clipboard
open override val a: Double

Green/red color component.

b
Link copied to clipboard
open override val b: Double

Blue/yellow color component.

L
Link copied to clipboard
open override val L: Double

Perceived lightness component.

Extensions

toSrlch2
Link copied to clipboard
@JvmName(name = "fromSrlab2")
fun Srlab2.toSrlch2(): Srlch2

Convert this color to the polar (LCh) representation of SRLAB2.