Previous Page | Next Page

DATA Step Graphics Interface Dictionary

COLREP



Finds the color name associated with a color index
Operating States: SGOP
Return Codes: 0, 4, 86, 87

Syntax
Description
Argument Definitions
See Also

Syntax

CALL GASK('COLREP', color-index, color, return-code-variable);


Description

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:

  1. the color selected by the GSET('COLREP', . . . ) function.

  2. the COLORS= graphics option. If color-index is 2, the routine returns the second color from the color list of the COLORS= graphics option.

  3. 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.


Argument Definitions

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.


See Also

COLINDEX

COLREP

Previous Page | Next Page | Top of Page