Introduction
This is the binary colour palette file of Microsoft Windows. It stores a Windows logical palette, a list of colours with a flags byte for each, inside the RIFF container that WAV and AVI also use.
The extension .pal is shared with other palette formats, such as the text
palette of Paint Shop Pro.
Structure
The file starts with RIFF, a 32-bit size and the form type
PAL (with a trailing space). Chunks follow, each with a four-character
name and a 32-bit little-endian size, padded to an even length. The data
chunk holds a 16-bit version, a 16-bit colour count and four bytes for each colour: red,
green, blue and flags.
Not described
Known, not yet covered
- Reference: this page is a summary; the extended palette chunks and the meaning of the flags are not yet described.
- Viewer: the site has no viewer that shows the palette’s colours.
Also used for
- Amstrad CPC OCP Art Studio palette – Palette files beside Amstrad CPC OCP Art Studio screens.
- JASC Paint Shop Pro palette – Plain-text colour palettes from Paint Shop Pro, starting JASC-PAL.
Links
Reference
- LOGPALETTE structure – Microsoft’s description of the palette structure the file stores
- Loading Microsoft RIFF palette files – Cyotek’s account of the file layout (C#)