Function
Common
fun ColorSpace.connect(
destination: ColorSpace = ColorSpaces.Srgb,
intent: RenderIntent = RenderIntent.Perceptual,
): Connector
Connects two color spaces to allow conversion from the source color space to the destination color space. If the source and destination color spaces do not have the same profile connection space (CIE XYZ with the same white point), they are chromatically adapted to use the CIE standard illuminant D50 as needed.
If the source and destination are the same, an optimized connector is returned to avoid unnecessary computations and loss of precision.
Parameters
| destination | The color space to convert colors to |
| intent | The render intent to map colors from the source to the destination |
Returns
| A non-null connector between the two specified color spaces |