Why Espruino did not suppert rgba color?

Posted on
  • Why Espruino did not suppert rgba color?
    It's very convenient for UI interface.
    Ex:


    1 Attachment

    • XrTHS.png
  • 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.

  • yes,thax
    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.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Why Espruino did not suppert rgba color?

Posted by Avatar for tyronehell @tyronehell

Actions