Load 2- to 8-bit grayscale PNGs with Lua

I use multiple, layered 1-bit PNGs.

But you can load any data you want if you give it a name that will not be compiled.

Check out Librif - C library to encode grayscale images for an example.

One issue with 8-bit images is that they're so much larger and speed of access from flash is quite slow.

1 Like