Color Palette
Weissblatt's color palette is defined in a set of special Lumps which define what colors can be used by Flats and Pictures.
Color Palette Format
Color palettes are simple dumps of 24-Bit RGB888 values. Each color palette consists of 14 pages of 256 color values each. Given 8 bits per-color per-channel, this amounts to a total file size of 10.5 kB.
Weissblatt itself only uses three of these 14 pages:
- Page 1, the default palette
- Page 5, a palette with a red tint
- Page 6, a darkened palette
COLORMAP
COLORMAPs are translation tables used to calculate light levels in Doom and by extension Weissblatt. They are 256x32 "pixels" large, covering for each palette color as well as 32 possible light levels, which are automatically calculated in-engine. Unlike color palettes, a COLORMAP's pixels are stored as palette indices though, not RGB values.
TINTTAB
TINTTABs are a format first defined in Hexen [1] to pre-calculate color values. Like COLORMAPs they are simple byte index-based translation tables, however TINTTABs are defined as 256x256 pixels, offering a translation between any two colors within the color palette.
Custom Color Palettes
TBA