Command/definecolorgroup

Unofficial ConTeXt Wiki mirror

Last modified: 2025-01-11

Syntax (autogenerated)

\definecolorgroup[...][...][x:y:z=,...]
[...] name
[...] gray rgb cmyk spot
[x:y:z=,...] triplet

Syntax

\definecolorgroup[...][...][x:y:z=,...]
[...] name
[...] rgb cmyk gray s
[x:y:z=,...]

Description

\definecolorgroup[myblue][rgb][0:0:1,0:0;0.6,0:0:3] defines three colours myblue:1, myblue:2, myblue:3. If one defines similar gamuts for e.g. green and red, such that equal numbers correspond to equal grayscales, one can easily pick a red, a green, and a blue so that the colours still differ from each other when converted to grayscale.

ConTeXt has predefined colorgroups for red, green, blue, cyan, magenta, yellow, and gray; these are defined in colo-rgb.mkii for MkII, and colo-imp-dem.mkiv ('dem' for 'demo')for MkIV, and may be imported with \usecolors.

Example

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: