Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loading and setting palettes
#1
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!
#2
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?
#3
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.


Forum Jump:


Users browsing this thread: 1 Guest(s)