Command/definecolor

From Wiki
< Command
Revision as of 13:46, 14 May 2010 by Hraban (talk | contribs) (fixed number parameters)
Jump to navigation Jump to search

\definecolor

Syntax

\definecolor[...][...,...=...,...]
[...] name
r number red channel (RGB)
g number green channel (RGB)
b number blue channel (RGB)
c number cyan channel (CMYK)
m number magenta channel (CMYK)
y number yellow channel (CMYK)
k number black channel (CMYK)
s number] Gray value (Grayscale)
s number Saturation (HSB)
v number Brightness/Value (HSB)
t number transparency factor
a number alternative (transparency method? use 1)
p number spotcolor percentage
e text spotcolor name
x text Hexadecimal RGB value (like in HTML)


Description

\definecolor associates a name with a color, for later use with the \color command.

To use hexadecimal colors in mkii you need to load the proper module first:

\setupcolor[hex]

Then the colors can be specified with

\definecolor[hex-red][h=FF0000]

Example

See also

Colors