Bangle.js 2 Screen resolution in Flappy Bird #4973
Replies: 1 comment
-
Posted at 2022-07-06 by fewieden @hank the BJS2 only supports 3bit color. The dots you can see are from dithering the remaining colors. http://forum.espruino.com/conversations/368893/ If you don't want that you can use the 8 solid colors (Black, White, Red, Green, Blue, Cyan, Yellow, and Magenta). Posted at 2022-07-06 by Hank Is there a way to convert e.g.
to 3bpp without having the original png file? Also if I change
to
I get
It looks fine in B/W though:
Edit:
instead of
will stop dirthering, but how can I show some shade of grey? Is that not possible? PS: I intended to let it run in full resolution - but that will be too slow. So I stopped developing that. I's be curious about the Grey thought :) Posted at 2022-07-07 by @gfwilliams
Not without dithering - because of the 3 bits. On Bangle.js 2 you may not even need the separate buffer. In fact I just pushed an update to the development app loader which renders fullscreen, and direct. Bangle.js 2's graphics aren't super fast at the moment (particularly the fill) - it's something I've been meaning to look at. Specifically if we were willing to throw away a bit of RAM (aligning to 4 bits, not 3) things get a lot easier! Posted at 2022-07-07 by user113695 Sacrificing a little memory to align to 4 bit sounds like a good compromise. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-07-06 by Hank
I tried to adjust https://banglejs.com/apps/?id=flappy so that it shows full screen on Bangle.js 2.
My code currently is:
However, the emulator shows these dots instead of a clear screen. Any hints?
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions