COLREP

Associates a color name with a certain color index
Operating state: SGOP
Default: 1. color list of COLORS= graphics option; 2. device's default color list

Syntax

return-code-variable=GSET('COLREP', color-index, color);

Required Arguments

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.

Return Codes

This function returns:

Details

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:
  1. the nth color in the color list of the COLORS= graphics option
  2. the nth color in the device's default color list