This operation retrieves the color that currently corresponds to a particular color number. Colors are numbered 1 through 16. The first 8 colors correspond to the low-intensity colors.

Their initial values are as follows:

1 Black
2 Blue
3 Green
4 Cyan
5 Red
6 Magenta
7 Brown
8    White

The second set of 8 colors contains the same colors in their high-intensity forms. To determine the current definition of any color number, move the color number desired into the WPAL-COLOR-ID field of WPALETTE-DATA and call W$PALETTE.

When it returns, the WPAL-RED, WPAL-GREEN, and WPAL-BLUE fields of WPALETTE-DATA will be filled in with the current definition of that color number. Each of these fields will contain a value from 0 to 255 that indicates the intensity of the red, green, and blue components of the color. A red-green-blue (RGB) combination of 0, 0, 0 indicates black. A RGB value of 255, 255, 255 is bright white. Other values cover the entire range of colors possible under Windows.