fromIntInViewingConditions

fun fromIntInViewingConditions(argb: Int, viewingConditions: ViewingConditions): Cam16

Create a CAM16 color from a color in defined viewing conditions.

The RGB => XYZ conversion matrix elements are derived scientific constants. While the values may differ at runtime due to floating point imprecision, keeping the values the same, and accurate, across implementations takes precedence.

Parameters

argb

ARGB representation of a color.

viewingConditions

Information about the environment where the color was observed.