PAL FILES

PAL files are 768 bytes long, and store a single 256 colors palette as 256 x 3 RGB bytes.

PAL_File IS

{

colors RGB_Color[256] // 256 colors from 0 to 255

}

Where:

RGB_Color Is

{

R byte // Red intensity
G byte // Green intensity
B byte // Blue intensity

}

Note that these intensities range from 0 to 63 (limit of VGA mode 0x13) in the PAL files.

Each level in Dark Forces can have its own palette, specified in the LEV header.