![]() |
Loading and setting palettes - Printable Version +- Tilengine - The 2D retro graphics engine forum (http://tilengine.org/forum) +-- Forum: English forums (http://tilengine.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (http://tilengine.org/forum/forumdisplay.php?fid=7) +--- Thread: Loading and setting palettes (/showthread.php?tid=2293) |
Loading and setting palettes - vonhoff - 05-28-2023 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! RE: Loading and setting palettes - megamarc - 05-29-2023 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? RE: Loading and setting palettes - vonhoff - 05-29-2023 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. |