DATA Step Graphics Interface Dictionary |
Finds the color name associated with a color index
Operating States: |
SGOP
|
Return Codes: |
0, 4, 86, 87
|
CALL GASK('COLREP', color-index,
color,
return-code-variable);
The GASK('COLREP', . . . ) routine returns
the predefined SAS color name associated with a color index. GASK('COLREP',
. . . ) searches for the current color assigned to a color index in the following
order:
-
the color selected by the GSET('COLREP', . . .
) function.
-
the COLORS= graphics option. If color-index is 2, the routine returns the second color from
the color list of the COLORS= graphics option.
-
the device's default color list found in the device
entry. If color-index is 2, the routine returns
the second color from the default color list.
See SAS Color Names and RGB Values in the SAS Registry for a
list of SAS predefined color
names.
color-index |
numeric constant; indicates the color
index for which you want to check the color. Valid values are 1 to 256, inclusive. |
color |
character variable name; returns
the color name associated with color-index. |
return-code-variable |
numeric variable name; returns the
return code of the routine call. |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.