Thanks, I have experimented using a palette. In this commit the palette is created to match what the image converter does for 3bpp RGB and 4bpp RGBA images. That seems to work fine for my purposes. I assume the image converter implicitly always uses the same "palette" when doing 3bpp or 4bpp images?
This palette has only 8 colors used and a lookup table is used to get the matching color for drawing on the buffer directly with correct color.
Does the buffer bit depth impact the performance of drawing operations? Perhaps more/less bit shifting at certain depths?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks, I have experimented using a palette. In this commit the palette is created to match what the image converter does for 3bpp RGB and 4bpp RGBA images. That seems to work fine for my purposes. I assume the image converter implicitly always uses the same "palette" when doing 3bpp or 4bpp images?
This palette has only 8 colors used and a lookup table is used to get the matching color for drawing on the buffer directly with correct color.
Does the buffer bit depth impact the performance of drawing operations? Perhaps more/less bit shifting at certain depths?