fromRGBa

fun fromRGBa(rgba: ColorRGBa, ref: ColorXYZa = ColorXYZa.NEUTRAL): ColorLABa(source)

Converts a given color in the RGBa color space to the LABa color space, optionally referencing a specific illuminant in the XYZa color space.

Parameters

rgba

The color in the RGBa color space to convert.

ref

The reference color in the XYZa color space to use for the conversion. Defaults to ColorXYZa.NEUTRAL.