To ease implementing advanced color interfaces, you may rely on the engine to perform color conversions.
Converts a color to the given color space.
- color: The color to convert.
- colorSpace: The color space to convert to.
- Returns The converted color.
// Convert a colorval rgbaGreen = Color.fromRGBA(r = 0F, g = 1F, b = 0F, a = 0F)val cmykGreen = engine.editor.convertColorToColorSpace(color = rgbaGreen, colorSpace = ColorSpace.CMYK)