colorMode(colorMode)

Sets the colormode for creating new colors with color() to RGB or CMYK. The default color mode is RGB.

Type: function

Parameter(s):

  • colorMode {Number}:

    RGB or CMYK.