Command/definecolor

From Wiki
< Command
Revision as of 14:14, 14 May 2010 by Hraban (talk | contribs)
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), if v isn't set
h number hue (HSB)
s number saturation (HSB)
v number brightness/value (HSB)
t number transparency factor
a number alternative (transparency method)
p number spotcolor percentage
e text spotcolor name
x text Hexadecimal RGB value (like in HTML), only with hex module


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, Reference/en/definetransparency