Chapter Contents |
Previous |
Next |
COLORS |
Used in: | GOPTIONS statement; GDEVICE procedure; GDEVICE Gcolors window |
Default: | device dependent |
Syntax | |
Details |
Syntax |
GOPTIONS: COLORS=<(colors-list | NONE)> |
GDEVICE: COLORS=(<colors-list> ) |
To change some of the colors in the colors list and retain others, you can use a null value for colors you do not want to change. For example, to change COLORS=(RED GREEN BLUE) to COLORS=(WHITE GREEN BROWN), you can specify COLORS=(WHITE,,BROWN).
Note: If
you specify COLORS=(NONE) and omit a color specification for a graphics element,
such as patterns, SAS/GRAPH selects
at random one of the colors already specified in your program.
Details |
goptions colors=; goptions colors=();
Note: By default,
if black is the first color in a device's colors list, default pattern rotation
skips black as a pattern color, but uses black as the area-outline color.
Thus, the outline color is never the same as an area's fill color. Using COLORS=
to change the colors list changes this default pattern behavior. When COLORS=
is used, all colors in the specified colors list are used in color rotation,
and the outline color is the first color in the specified colors list. Thus,
the outline color will match any area using the first color as its fill.
See PATTERN Statement for more information on pattern rotation.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.