CieXyz

data class CieXyz(x: Double, y: Double, z: Double) : Color

A color in the CIE XYZ tristimulus color space. This is often used as an intermediate color space for uniform color spaces and color appearance models.

Note that this is not a uniform color space; see dev.kdrag0n.colorkt.ucs.lab.Lab for that.

See also

Constructors

CieXyz
Link copied to clipboard
fun CieXyz(x: Double, y: Double, z: 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

x
Link copied to clipboard
val x: Double

X component: mix of the non-negative CIE RGB curves.

y
Link copied to clipboard
val y: Double

Y component: relative luminance.

z
Link copied to clipboard
val z: Double

Z component: approximately equal to blue from CIE RGB.

Extensions

toAbs
Link copied to clipboard
@JvmName(name = "fromRel")
fun CieXyz.toAbs(luminance: Double = DEFAULT_SDR_WHITE_LUMINANCE): CieXyzAbs

Convert a relative XYZ color to absolute XYZ, using the specified reference white luminance.

toCieLab
Link copied to clipboard
@JvmName(name = "fromXyz")
fun CieXyz.toCieLab(refWhite: CieXyz = Illuminants.D65): CieLab

Convert this color to the CIE Lab* uniform color space.

toOklab
Link copied to clipboard
@JvmName(name = "fromXyz")
fun CieXyz.toOklab(): Oklab

Convert this color to the Oklab uniform color space.