Code 2 returns color map values. The return array must be a two dimensional REAL array, with at least one row and three columns. The first row contains color information for pen 0, second row for pen 1, etc. If the array does not have enough rows, only part of the color map is returned. If the array has too many rows, only part of the array will be used. The first column contains the information for red, the second for green, and the third for blue. The color information ranges in value from zero to one. Color values are multiples of 1/N, where N is the number of non-black shades available for each color.
A_return(0,0) - Pen 0 red color map value
A_return(0,1) - Pen 0 green color map value
A_return(0,2) - Pen 0 blue color map value
. . . . .
. . . . .
. . . . .
A_return(15,0) - Pen 15 red color map value
A_return(15,1) - Pen 15 green color map value
A_return(15,2) - Pen 15 blue color map value
The following program shows how to return the color map values.