Tilengine - The 2D retro graphics engine forum

Full Version: Loading and setting palettes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey Marc,

I have a question about the TLN_Palette's first color. Why is it that TLN_SetPaletteColor always sets the first color (index 0) to 0, even though the ACT palette in /samples/assets/racer has a different RGB value: (R: 102, G: 34, B: 238)? Is there a special meaning for the zero value?

Thanks!
Hi,
Palette index 0 is always transparent, so its actual rgb value is ignored.
What effect are you trying to achieve by manipulating index 0?
I see, that makes sense. I'm writing some custom palette loaders for ASE and PAL files, and I indeed noticed that the first color is always transparent during testing.