## Color related Commands

changeColor(...)
  `changeColor("name", c, m, y, k)`

  Changes the color "name" to the specified CMYK value. The color value is defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in the range from 0 to 255.

  May raise NotFoundError if the named color wasn't found. May raise ValueError if an invalid color name is specified.

defineColor(...)
  `defineColor("name", c, m, y, k)`

  Defines a new color "name". The color Value is defined via four components: c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in the range from 0 to 255.

  May raise ValueError if an invalid color name is specified.

deleteColor(...)
  `deleteColor("name", "replace")`

  Deletes the color "name". Every occurence of that color is replaced by the color "replace". If not specified, "replace" defaults to the color "None" - transparent.

  deleteColor works on the default document colors if there is no document open. In that case, "replace", if specified, has no effect.

  May raise NotFoundError if a named color wasn't found. May raise ValueError if an invalid color name is specified.

getColor(...)
  `getColor("name") -> tuple`

  Returns a tuple (C, M, Y, K) containing the four color components of the color "name" from the current document. If no document is open, returns the value of the named color from the default document colors.

  May raise NotFoundError if the named color wasn't found. May raise ValueError if an invalid color name is specified.

getColorAsRGB(...)
  `getColorAsRGB("name") -> tuple`

  Returns a tuple (R,G,B) containing the three color components of the color "name" from the current document, converted to the RGB color space. If no document is open, returns the value of the named color from the default document colors.

  May raise NotFoundError if the named color wasn't found. May raise ValueError if an invalid color name is specified.

getColorNames(...)
  `getColorNames() -> list`

  Returns a list containing the names of all defined colors in the document. If no document is open, returns a list of the default document colors.

replaceColor(...)
  `replaceColor("name", "replace")`

  Every occurence of the color "name" is replaced by the color "replace".

  May raise NotFoundError if a named color wasn't found. May raise ValueError if an invalid color name is specified.