DATA Step Graphics Interface Dictionary |
Associates a color name with a certain color index
Operating States: |
SGOP
|
Return Codes: |
0, 4, 86
|
Default Values: |
1. color list of COLORS= graphics option;
2. device's default color list
|
return-code-variable=GSET('COLREP', color-index, color);
The GSET('COLREP', . . . ) function associates
a predefined SAS color name with a color index. Many of the GASK routines
and GSET functions use color-index as an argument.
If this function is not used, DSGI searches for a color
specification in the following order:
-
the nth color in
the color list of the COLORS= graphics option
-
the nth color in
the device's default color list.
color-index |
numeric constant or numeric variable
name; a number from 1 to 256 that identifies a color. |
color |
character string enclosed in quotation
marks or character variable name; a predefined SAS color name. See SAS Color Names and RGB Values in the SAS Registry for a list of predefined SAS color
names. |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.