CieXyzAbs

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

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

See also

Constructors

CieXyzAbs
Link copied to clipboard
fun CieXyzAbs(x: Double, y: Double, z: Double)

Types

Companion
Link copied to clipboard
object Companion

Functions

toRel
Link copied to clipboard
fun toRel(luminance: Double = DEFAULT_SDR_WHITE_LUMINANCE): CieXyz

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

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: absolute luminance.

z
Link copied to clipboard
val z: Double

Z component: approximately equal to blue from CIE RGB.

Extensions

toZcam
Link copied to clipboard
@JvmName(name = "fromXyzAbs")
fun CieXyzAbs.toZcam(cond: Zcam.ViewingConditions, include2D: Boolean = true): Zcam

Get the perceptual appearance attributes of this color using the Zcam color appearance model. Input colors must be relative to a reference white of D65, absolute luminance notwithstanding.