Why Espruino did not suppert rgba color?
It's very convenient for UI interface.
On which platform in particular?
On Bangle.js it's just not possible as it is unable to read back pixels that have been written to the display.
Can i read back pixels by using arrayBuffer??
nope... the HW is not setup / wired for it.
If you're creating something with Graphics.createArrayBuffer then yes you can read pixels back, and actually it's already done when drawing antialiased lines/polys/fonts.
So in that case, RGBA could be added. It's just not been worth the extra overhead (it might end up making normal draws slower) when I don't think it would get used much - it's extremely rare you have a device with enough RAM to store a decent size RGB image.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem