Returns the type of the color as a string.
Sample code:
var color = new RGBColor(1, 0, 0);
print(color.type); // 'rgb'
print(color.type == 'cmyk'); // false
color = color.convert('cmyk') // convert the color to a CMYKColor
print(color.type); // 'cmyk'
color.alpha = 0.5; // give the color an alpha value
print(color.type); // 'acmyk'
Read-only.
Returns:
-
String ('rgb', 'cmyk', 'gray', 'bitmap', 'argb', 'acmyk', 'agray', 'abitmap')
— the color type