Extends Color
Creates a CMYKColor with the supplied color component values. The color components have values between 0 and 1.
Creates a CMYKColor using the values from the supplied array. The color components have values between 0 and 1.
Sample code:
var components = [1, 1, 0, 0.5]; var color = new CMYKColor(components); print(color); // { cyan: 1.0, magenta: 1.0, yellow: 0.0, black: 0.5 }
Checks if the component color values of the CMYKColor are the same as those of the supplied one.
Returns the color component values as an array.
var color = new CMYKColor(1, 1, 0, 0.5); print(color.components) // 1.0, 1.0, 0.0, 0.5, -1.0
A value between 0 and 1 that specifies the amount of cyan in the CMYK color.
A value between 0 and 1 that specifies the amount of magenta in the CMYK color.
A value between 0 and 1 that specifies the amount of yellow in the CMYK color.
A value between 0 and 1 that specifies the amount of black in the CMYK color.