convert

fun convert(color: Color, sourceColorSpace: ColorSpace, targetColorSpace: ColorSpace): Color

Converts the given color from sourceColorSpace to targetColorSpace, mutating and returning it. Returns the color unchanged when color management is disabled, the spaces match, or either space is ColorSpace.NoColorSpace.

Return

The converted color.