Gez
Why don't I have a custom title by now?!
Posts: 9157
Registered: 07-07 |
I have figured it out. The palette colors are, of all things in ABGR format, more precisely like this:
A BBBBB GGGGG RRRRR
This makes a word that looks like this:
ABBBBBGG GGGRRRRR
And it is written in little-endian representation, so it ends up like this:
GGGRRRRR ABBBBBGG
A is 0 for transparent, 1 for opaque. In theory, any palette index could be transparent or opaque. Fortunately, the way the PLAYPAL was written, it is only ever palette index 0 which is transparent.
|