It may be "well-known" for you - but it wasn't for me, thus:
if you g.drawImage(...) a bitmap with one bit per pixel (b/w), that image will not be drawn as defined but using the current foreground/background colors!
This behaviour is documented, but I missed that until today:
If the image is 1 bit, the graphics foreground/background colours will be used.
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.
It may be "well-known" for you - but it wasn't for me, thus:
if you
g.drawImage(...)
a bitmap with one bit per pixel (b/w), that image will not be drawn as defined but using the current foreground/background colors!This behaviour is documented, but I missed that until today:
Good to know...