Skip to main content

Color

Color is specified as a string. There are several methods to specify colors.

Named color

The following common colors are available: black, white, gray, red, green, blue, cyan, magenta, yellow. All standard web colors are also available.

See https://en.wikipedia.org/wiki/Web_colors for a complete list.

RGB color

Specify color as sRGB, e.g. rgb(20%, 0%, 80%) for 20% red, 0% green and 80% red. Color management will be used for CMYK printers with an active color profile.

CMYK color

Specify color as CMYK, e.g. cmyk(70%, 10%, 80%, 10%) for 70% cyan, 10% magenta, 80% yellow and 10% black. Not color managed. Smart white will be applied when using on a Colorize CMYK+W.

Single ink color

  • magenta(50%) where "magenta" is the color name of any of the ink color.

Direct ink mix

  • ink(c1, c2, …, cN) where N is the number of inks. Two color printer example: ink(25%,50%)

Special colors

There are two special color codes:

CodeDescription
noneThe object will be invisible.
blankThe object will be painted with blank space (i.e. no ink).