Elementname: DefineColor

Description

Colors defined with DefineColors can be referenced later by their name.

Allowed attributes: b, c, g, k, m, model, name, r, value, y

Child elements: (none)

Parent elements: AtPageCreation, AtPageShipout, Case, Contents, ForAll, Include, Layout, Loop, Otherwise, Record, SavePages, Until, While

Attributes

b (0 up to 100, optional)

Blue part with RGB

c (0 up to 100, optional)

Cyan part with CMYK

g (0 up to 100, optional)

Green part with RGB / gray part when using the model gray

k (0 up to 100, optional)

Black part with CMYK

m (0 up to 100, optional)

Magenta part with CMYK

model (optional)

Color model to be used for the color. Currently “rgb”, “cmyk” and “gray” are supported. More on request.

cmyk:

CMYK (cyan, magenta, yellow, key/black)

rgb:

RGB (red, green, blue)

gray:

Gray (0=Black)

name (string)

The name of the color to be defined.

r (0 up to 100, optional)

Red part with RGB

value (string, optional)

y (0 up to 100, optional)

Yellow part with CMYK

Example

<DefineColor name="black" model="cmyk" c="0" m="0" y="0" k="100"/>
<DefineColor name="white" model="rgb" r="100" g="100" b="100"/>

Commands

Version: 2.0.0 | Start page | Command reference | Other languages: German