Editing the palette.mac File

To define a new color, use the following format:

COLOR_NAME COLOR_INDEX ! RED GREEN BLUE

 

Where the COLOR_NAME is an arbitrary name you assign to the color, the COLOR_INDEX is the integer index you assign to the color, and, following the exclamation point, the RED, GREEN, and BLUE parameters are the R, G, and B values for the custom color, normalized to 1.

 

Note that the RED GREEN BLUE values must be preceded by the ! character.

 

Example:

 

RED 4 ! 1.0 0.0 0.0
STEEL_BLUE 6 ! 0.5 0.5 0.8

 

The default color names and indices are:

 

BLACK

0

STEEL_BLUE

6

LRED

12

BLUE

1

LGREY

7

LPURPLE

13

GREEN

2

GREY

8

YELLOW

14

CYAN

3

LBLUE

9

WHITE

15

RED

4

LGREEN

10

 

 

PURPLE

5

LCYAN

11