color setting for bpp = 8 ? #1192
Replies: 3 comments
-
Posted at 2018-09-24 by @gfwilliams Are you sure about that? Maybe I'm misunderstanding the question. In 16/24/32 you get R,G and B channels handled separately (if you specify them), but in anything else it's considered that the image is a single channel, so |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-24 by JumJum Hmmm, may be I'm misunderstanding the answer. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-24 by @gfwilliams Ahh, ok - yes, It's not supported because there's no standard way of mapping R,G and B to a single 8 bit value (same with 1, 2 and 4 bits). About the only thing you could reliably assume is white being all 1 and black being all 0 (or vice versa) which is what it does. I've updated the docs here: espruino/Espruino@8ef686d If you have some specific display that works another way, nothing stops you from just overriding |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-24 by JumJum
As far as I can see, possible bpp values are 1,2,4,8,16,24,32
In set Color bpp of 16,24,32 are handled seperately
All others result in 0 or 0xFFFFFFFF only
Is there a technical reason for that ?
Beta Was this translation helpful? Give feedback.
All reactions