<h2>Palletes and palletes addresses:</h2>
*Submitted by Weird Person on May 21 2005.*
*Corrected by Sonic Hachelle-Bee.*

<h3>The pallete format:</h3>
Here are my notes about how palletes work on Sega Genesis, and where are the palletes in the Sonic 2 ROM.

First, what is a pallete? A pallete for the Genesis means 64 colors or 4 lines of 16 colors each. Each color is represented by a word in the ROM file. It\'s easy to understand it, look at the following word in bits:

0000 <font color=\"blue\">BBB</font>0 <font color=\"green\">GGG</font>0 <font color=\"red\">RRR</font>0

The \"B\" means the <span style=\"color: rgb(0, 0, 255);\">blue</span> intense.
The \"G\" means the <span style=\"color: rgb(0, 128, 0);\">green</span> intense.
The \"R\" means the <span style=\"color: rgb(255, 0, 0);\">red</span> intense.

What that means? For example, if you want the lighter red, you will have to have no blue intense, and no green intense, but you will need the red intense. So, the word will have to be the following:

0<font color=\"blue\">0</font><font color=\"green\">0</font><font color=\"red\">E</font>

With this word, you get the lighter red possible.

If the color value is high, the color will be lighter. If the color value is low, the color will be darker.

For example, if you want a purple color, you will need to mix some blue with red. Look:

0<font color=\"blue\">E</font><font color=\"green\">0</font><font color=\"red\">E</font>

The color above is the lighter purple.

While editing colors with your favourite hex editor, you don\'t need really to convert your color values in bits first. You can edit directly the hex value, but only even values are accepted from 0 to E. Another thing: the first nybble is usually 0. You can write anything else for this nybble, this won\'t change anything at all.

<h3>The pallete addresses:</h3>
There is an offset index for most pallets in the game. It\'s located at $2782.

For each pallet, you have 4 bytes for the absolute address in the ROM, 2 bytes for the address in RAM (where to load the pallet) and 2 bytes for the number of colors to load in this RAM address.

Now, see the offsets for each pallet, and for what each pallet is used for:

<table style=\"text-align: left; width: 100%;\" border=\"1\" cellpadding=\"2\" cellspacing=\"2\"> <tbody><tr>  <td style=\"background-color: rgb(034, 068, 034);\" align=\"center\" valign=\"middle\">ID</td><td style=\"background-color: rgb(034, 068, 034);\" align=\"center\" valign=\"middle\">Pallet absolute address</td>  <td style=\"background-color: rgb(034, 068, 034);\" align=\"center\" valign=\"middle\">Number of colors</td>  <td style=\"background-color: rgb(034, 068, 034);\" align=\"center\" valign=\"middle\">Description</td></tr><tr><td></td><td align=\"center\" valign=\"middle\">$2246</td><td align=\"center\" valign=\"middle\">24 colors</td><td align=\"center\" valign=\"middle\">Sonic to Super Sonic fading pallet</td></tr> <tr><td></td><td align=\"center\" valign=\"middle\">$2276</td><td align=\"center\" valign=\"middle\">40 colors</td><td align=\"center\" valign=\"middle\">Super Sonic rotating pallet</td></tr> <tr><td></td><td align=\"center\" valign=\"middle\">$2346</td><td align=\"center\" valign=\"middle\">24 colors</td><td align=\"center\" valign=\"middle\">Sonic to Super Sonic underwater fading pallet</td></tr> <tr><td></td><td align=\"center\" valign=\"middle\">$2376</td><td align=\"center\" valign=\"middle\">40 colors</td><td align=\"center\" valign=\"middle\">Super Sonic underwater rotating pallet</td></tr> <tr>  <td align=\"center\" valign=\"middle\">00</td><td align=\"center\" valign=\"middle\">$28C2</td>  <td align=\"center\" valign=\"middle\">16 colors</td>  <td align=\"center\" valign=\"middle\">Sega logo pallet</td></tr><tr>  <td></td><td align=\"center\" valign=\"middle\">$28E2</td>  <td align=\"center\" valign=\"middle\">16 colors</td>  <td align=\"center\" valign=\"middle\">Sega logo \"SEGA\" pallet</td></tr><tr>  <td></td><td align=\"center\" valign=\"middle\">$2902</td>  <td align=\"center\" valign=\"middle\">16 colors</td>  <td align=\"center\" valign=\"middle\">Sega logo \"Sonic\" pallet</td></tr><tr>  <td></td><td align=\"center\" valign=\"middle\">$2922</td>  <td align=\"center\" valign=\"middle\">16 colors</td>  <td align=\"center\" valign=\"middle\">Sega logo pallet (unused?)</td></tr> <tr><td align=\"center\" valign=\"middle\">01</td><td align=\"center\" valign=\"middle\">$2942</td><td align=\"center\" valign=\"middle\">16 colors</td><td align=\"center\" valign=\"middle\">Title screen \"Tails\" pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">03</td><td align=\"center\" valign=\"middle\">$29E2</td><td align=\"center\" valign=\"middle\">16 colors</td><td align=\"center\" valign=\"middle\">Sonic and Tails pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">04</td><td align=\"center\" valign=\"middle\">$2A22</td><td align=\"center\" valign=\"middle\">48 colors</td><td align=\"center\" valign=\"middle\">Emerald Hill zone pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">06</td><td align=\"center\" valign=\"middle\">$2A82</td><td align=\"center\" valign=\"middle\">48 colors</td><td align=\"center\" valign=\"middle\">Wood zone pallet (unused)</td></tr> <tr><td align=\"center\" valign=\"middle\">08</td><td align=\"center\" valign=\"middle\">$2AE2</td><td align=\"center\" valign=\"middle\">48 colors</td><td align=\"center\" valign=\"middle\">Metropolis zone pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">0A</td><td align=\"center\" valign=\"middle\">$2B42</td><td align=\"center\" valign=\"middle\">48 colors</td><td align=\"center\" valign=\"middle\">Wing Fortress zone pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">0B</td><td align=\"center\" valign=\"middle\">$2BA2</td><td align=\"center\" valign=\"middle\">48 colors</td><td align=\"center\" valign=\"middle\">Hill Top zone pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">0C</td><td align=\"center\" valign=\"middle\">$2C02</td><td align=\"center\" valign=\"middle\">48 colors</td><td align=\"center\" valign=\"middle\">Hidden Palace zone pallet (unused)</td></tr> <tr><td align=\"center\" valign=\"middle\">0E</td><td align=\"center\" valign=\"middle\">$2CE2</td><td align=\"center\" valign=\"middle\">48 colors</td><td align=\"center\" valign=\"middle\">Oil Ocean zone pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">0F</td><td align=\"center\" valign=\"middle\">$2D42</td><td align=\"center\" valign=\"middle\">48 colors</td><td align=\"center\" valign=\"middle\">Mystic Cave zone pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">10</td><td align=\"center\" valign=\"middle\">$2DA2</td><td align=\"center\" valign=\"middle\">48 colors</td><td align=\"center\" valign=\"middle\">Casino Night zone pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">11</td><td align=\"center\" valign=\"middle\">$2E02</td><td align=\"center\" valign=\"middle\">48 colors</td><td align=\"center\" valign=\"middle\">Chemical Plant zone pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">12</td><td align=\"center\" valign=\"middle\">$2EE2</td><td align=\"center\" valign=\"middle\">48 colors</td><td align=\"center\" valign=\"middle\">Death Egg zone pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">13</td><td align=\"center\" valign=\"middle\">$2F42</td><td align=\"center\" valign=\"middle\">48 colors</td><td align=\"center\" valign=\"middle\">Aquatic Ruin zone pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">14</td><td align=\"center\" valign=\"middle\">$3022</td><td align=\"center\" valign=\"middle\">48 colors</td><td align=\"center\" valign=\"middle\">Sky Chase zone pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">18</td><td align=\"center\" valign=\"middle\">$3162</td><td align=\"center\" valign=\"middle\">16 colors</td><td align=\"center\" valign=\"middle\">Main Special Stage pallet</td></tr> <tr><td></td><td align=\"center\" valign=\"middle\">$3182</td><td align=\"center\" valign=\"middle\">16 colors</td><td align=\"center\" valign=\"middle\">Special Stage \"Sonic\" pallet</td></tr> <tr><td></td><td align=\"center\" valign=\"middle\">$31A2</td><td align=\"center\" valign=\"middle\">16 colors</td><td align=\"center\" valign=\"middle\">Special Stage \"Tails\" pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">1B</td><td align=\"center\" valign=\"middle\">$31C2</td><td align=\"center\" valign=\"middle\">16 colors</td><td align=\"center\" valign=\"middle\">1st Special Stage pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">1C</td><td align=\"center\" valign=\"middle\">$31E2</td><td align=\"center\" valign=\"middle\">16 colors</td><td align=\"center\" valign=\"middle\">2nd Special Stage pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">1D</td><td align=\"center\" valign=\"middle\">$3202</td><td align=\"center\" valign=\"middle\">16 colors</td><td align=\"center\" valign=\"middle\">3rd Special Stage pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">1E</td><td align=\"center\" valign=\"middle\">$3222</td><td align=\"center\" valign=\"middle\">16 colors</td><td align=\"center\" valign=\"middle\">4th Special Stage pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">1F</td><td align=\"center\" valign=\"middle\">$3242</td><td align=\"center\" valign=\"middle\">16 colors</td><td align=\"center\" valign=\"middle\">5th Special Stage pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">20</td><td align=\"center\" valign=\"middle\">$3262</td><td align=\"center\" valign=\"middle\">16 colors</td><td align=\"center\" valign=\"middle\">6th Special Stage pallet</td></tr> <tr><td align=\"center\" valign=\"middle\">21</td><td align=\"center\" valign=\"middle\">$3282</td><td align=\"center\" valign=\"middle\">16 colors</td><td align=\"center\" valign=\"middle\">7th Special Stage pallet</td></tr> <tr><td></td><td align=\"center\" valign=\"middle\">$133EC</td><td align=\"center\" valign=\"middle\">16 colors</td><td align=\"center\" valign=\"middle\">Title screen \"Sonic\" pallet</td></tr> <tr><td></td><td align=\"center\" valign=\"middle\">$1340C</td><td align=\"center\" valign=\"middle\">32 colors</td><td align=\"center\" valign=\"middle\">Title screen pallet</td></tr></tbody></table>

More pallets will be added soon...