solveToInt

fun solveToInt(hueDegrees: Double, chroma: Double, lstar: Double): Int

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

Return

A hexadecimal 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*.