Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

Palettes

From Data Crystal
Jump to navigation Jump to search

A palette is a limited index of colors defined as a subset of the total range of displayable colors. Any given game will generally contain many such palettes.

SNES Palettes

The SNES uses a 15-bit format to describe a single color entry. 5 bits are allocated to each of the three red, green, and blue color components. Therefore, a single color is stored in two bytes, as such:

0BBBBBGG GGGRRRRR

Note that colors are stored in little-endian format, exactly as shown. In other words, when read as a 16-bit word, the most significant bit of the least significant byte is 0. For example, full intensity blue would be stored as 01111100 00000000 [78 00], but would be read as 00000000 01111100 or simply [78].

So very stubbly.
This page is rather stubbly and could use some expansion.
Are you a bad enough dude to rescue this article?