7.9.3 Color Map

This data file correlates the color index and the actual color, and it is indicated by the internal variable 'CLRMAP'. The file name can have filename extensions for distinguishing machines. For example, in the standard library, the extension .x11, can stand for X-windows, and .psx  for PS, so that they are selectively searched for.

The color index 0 is for specifying the background color, and all other numbers corresponds to the ICLIDX (See 7.4.1.) The color is specified in the saturation in RGB, and takes values ranging from 0 to 65535 (16bits).  Some machines may not be able to express this much gradation. In such a case, the SWPACK reads this file format and converts the values to an appropriate gradation. Therefore, the SWPACK must be written so that this file is effective as is in different systems..

The color index and the actual color displayed are system-dependent, but the standard correlation between color indices1 to 5 and the actual colors are as follows.

Color Index Color
1 Black or white
2 Red
3 Green
4 Blue
5 Yellow


(The color index from 2 to 4 is in the order of RGB.)