toRGB

open override fun toRGB(): Color.RGB(source)

Converts the color to the Red-Green-Blue (RGB) space.

If the color is currently defined in a different space, this conversion may result in a loss of precision (e.g., converting from HSL to RGB and back again may result in a slightly different color).

Return

the closest representation of the current color in the RGB space