Named Colors
You can change an element's color by setting any of the color assignment keywords to a named color. A named color is specified in a design script using a string data type. A string is a sequence of characters enclosed in quotes. You can use either single or double quotes, but the opening and closing quote must be the same type.
Syntax:
color = "string"
boundary_color = "string"
fill_color = "string"
When you specify a named color in a design script, the printing system searches for the specified color string from one of the delivered color books or from the built-in color table. The built-in color table contains 67 named colors with their corresponding RGB values and is shown in the table below.
Named Color | RGB Values |
---|---|
aquamarine | 0.49803, 1.00000, 0.83137 |
aquamarine, medium | 040000, 0.80392, 0.66666 |
black | 0.00000, 0.00000, 0.00000 |
blue | 0.00000, 0.00000, 1.00000 |
blue, cadet | 0.59607, 0.96078, 1.00000 |
blue, cornflower | 0.39215, 0.58431, 0.92941 |
blue, dark slate | 0.28235, 0.23921, 0.54509 |
blue, light | 0.67843, 0.84705, 0.90196 |
blue, light steel | 0.79215, 0.88235, 1.00000 |
blue, medium | 0.00000, 0.00000, 0.80392 |
blue, medium slate | 0.48235, 0.40784, 0.93333 |
blue, midnight | 0.09803, 0.09803, 0.43921 |
blue, navy | 0.00000, 0.00000, 0.50000 |
blue, sky | 0.52941, 0.80784, 0.92156 |
blue, slate | 0.51372, 0.43529, 1.00000 |
blue, steel | 0.38823, 0.72156, 1.00000 |
brown | 1.00000, 0.25098, 0.25098 |
coral | 1.00000, 0.44705, 0.33725 |
cyan | 0.00000, 1.00000, 1.00000 |
firebrick | 0.69803, 0.13333, 0.13333 |
gold | 1.00000, 0.84313, 0.00000 |
goldenrod | 0.85490, 0.64705, 0.12549 |
goldenrod, medium | 0.72156, 0.52549, 0.04313 |
gray | 0.74509, 0.74509, 0.74509 |
gray, dark slate | 0.18431, 0.30980, 0.30980 |
gray, dim | 0.41176, 0.41176, 0.41176 |
gray, light | 0.82745, 0.82745, 0.82745 |
green | 0.00000, 1.00000, 0.00000 |
green, dark | 0.79215, 1.00000, 0.43921 |
green, dark olive | 0.79215, 1.00000, 0.43921 |
green, forest | 0.13333, 0.54509, 0.13333 |
green, light | 0.12549, 0.69803, 0.66666 |
green, lime | 0.19607, 0.80392, 0.19607 |
green, medium forest | 0.06666, 0.27254, 0.06666 |
green, medium sea | 0.23529, 0.70196, 0.44313 |
green, medium spring | 0.00000, 0.98039, 0.60392 |
green, pale | 0.60392, 1.00000, 0.60392 |
green, sea | 0.32941, 0.93333, 0.58039 |
green, spring | 0.00000, 1.00000, 0.50000 |
green, yellow | 0.60392, 0.80392, 0.19607 |
khaki | 1.00000, 0.81770, 0.59100 |
magenta | 0.94117, 0.90196, 0.54901 |
maroon | 0.69019, 0.18823, 0.37647 |
orange | 1.00000, 0.64705, 0.00000 |
orchid | 1.00000, 0.51372, 0.98039 |
orchid, dark | 0.74901, 0.24313, 1.00000 |
orchid, medium | 0.87843, 0.40000, 1.00000 |
pink | 1.00000, 0.70980, 0.77254 |
plum | 0.86666, 0.62745, 0.86666 |
red | 1.00000, 0.00000, 0.00000 |
red, indian | 0.80392, 0.36078, 0.36078 |
red, medium violet | 0.78039, 0.08235, 0.52156 |
red, orange | 1.00000, 0.27058, 0.00000 |
red, violet | 1.00000, 0.24313, 0.58823 |
salmon | 1.00000, 0.54901, 0.41176 |
sienna | 0.62745, 0.32156, 0.17647 |
tan | 1.00000, 0.64705, 0.30980 |
thistle | 0.84705, 0.74901, 0.84705 |
turquoise | 0.25098, 0.87843, 0.81568 |
turquoise, dark | 0.00000, 0.80784, 0.81960 |
turquoise, medium | 0.28235, 0.81960, 0.80000 |
violet | 0.93333, 0.50980, 0.93333 |
violet, blue | 0.54117, 0.16862, 0.88627 |
wheat | 1.00000, 0.90588, 0.72941 |
white | 1.00000, 1.00000, 1.00000 |
yellow | 1.00000, 1.00000, 0.00000 |
yellow, green | 0.67843, 1.00000, 0.18431 |
The printing system supports the following format for specifying a color string from one of the delivered color books: "<color book name>:<color name>".
Examples:
color = "RAL DESIGN:RAL 000 45 00" boundary_color = "NCS - Natural Color System(R)(C):NCS S 0300-N" fill_color = "PANTONE(R) pastel uncoated:PANTONE Green 0921 U"
If you primarily use standard colors, the built-in color table may be adequate; otherwise, you can specify a color book name from any of the delivered color books (PANTONE, RAL CLASSIC, RAL DESIGN, or NCS - Natural Color System(R)(C)).
For example, to change the color of elements in the master file to "black" and the color of elements in all reference files to a gray shade, you can write the following design script:
! ! Change the color of all elements in the ! master file to black, and the reference ! files to a gray. ! if (file eq 0) then color = "black" else color = "RAL DESIGN:RAL 000 45 00" endif