XYZToLAB

open fun XYZToLAB(@FloatRange(from = 0.0, to = 95.047) x: Double, @FloatRange(from = 0.0, to = 100.0) y: Double, @FloatRange(from = 0.0, to = 108.883) z: Double, outLab: @NonNull Array<Double>)(source)

Converts a color from CIE XYZ to CIE Lab representation.

This method expects the XYZ representation to use the D65 illuminant and the CIE 2° Standard Observer (1931).

  • outLab[0] is L [0, 100]
  • outLab[1] is a [-128, 127)
  • outLab[2] is b [-128, 127)

Parameters

x

X component value [0, 95.047)

y

Y component value [0, 100)

z

Z component value [0, 108.883)

outLab

3-element array which holds the resulting Lab components