Palette

The file palette.e in the GFX directory contains 71 palettes, each holding 256 color definitions of 3 bytes per color (RGB each 1 byte). Only 6 bits are used per color, so to make it usable in an 8-bit color environment, simply left-shift the value twice.

The link between images and their palette number was hardcoded, so can't be looked up. A (manually constructed) list can be found in the gfx and bob directory articles.

To get the right palette for a palette number, just load 256 bytes starting at byte  (with palette_number starting at 0).