solveToCam

fun solveToCam(hueDegrees: Double, chroma: Double, lstar: Double): Cam16

Finds an sRGB color with the given hue, chroma, and L*, if possible.

Return

A CAM16 object representing the sRGB color. The color has sufficiently close hue, chroma, and L* to the desired values, if possible; otherwise, the hue and L* will be sufficiently close, and chroma will be maximized.

Parameters

hueDegrees

The desired hue, in degrees.

chroma

The desired chroma.

lstar

The desired L*.