to Color Data
abstract fun toColorData(reference: ReferenceWhite = ReferenceWhite.D50_2, type: IColorData.ColorType = CIEXYZ): IColorData?
Provides color data from this measurement for the specified illuminant and observer white point. Result is null
if the specified white point is not available for this measurement.
Parameters
reference
Selected reference white (defaults to ReferenceWhite.D50_2)
type
Output color type (defaults to ColorType.CIEXYZ)
open fun toColorData(illuminant: Illuminant = Illuminant.D50, observer: Observer = Observer.CIE1931, type: IColorData.ColorType = CIEXYZ): IColorData?
Provides color data from this measurement for the specified illuminant and observer white point. Result is null
if the specified white point is not available for this measurement.
Parameters
illuminant
Selected illuminant reference for output (defaults to Illuminant.D50)
observer
Selected observer reference for output (defaults to Observer.CIE1931)
type
Output color type (defaults to ColorType.CIEXYZ)