Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
|
Even though the TFT supports 16 bit color, a 16 bit frame-buffer is too big to have in RAM alongside games and such. Instead, the 8 bit Web Safe palette is used, where each RGB channel has six options for a total of 216 colors. The paletteColor_t enum has values for all colors in the form of cRGB, where R, G, and B each range from 0 to 5. For example, c500 is full red. cTransparent is a special value for a transparent pixel.
Go to the source code of this file.
Variables | |
const uint16_t | paletteColors [] |
The 16-bit color values for paletteColor_t to actually draw to the TFT. | |
enum paletteColor_t |
All 216 possible colors, named like cRGB.
|
extern |
The 16-bit color values for paletteColor_t to actually draw to the TFT.
Each 16 bit value is rrrrrggggggbbbbb, but it's in LSB order, so it's actually gggbbbbbrrrrrggg