g.fillPoly dithered colors #1609
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 2 comments
-
Posted at 2022-04-20 by @gfwilliams What device are you using this on? On Bangle.js 2 you should get dithering, but other devices don't implement it. I think the issue is you're using |
Beta Was this translation helpful? Give feedback.
0 replies
-
Posted at 2022-04-20 by NoMusicTuesdays Perfect! Yes that does it! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-04-20 by NoMusicTuesdays
The g.fillPoly function is great, but I'm wondering if there's a way to fill it with dithered colors. For example, let's say I want my polygon to be filled with a black/blue checkerboard pattern. I tried setting the color to (0,0,127) like so:
but it still filled my polygon with full 0000FF blue.
It appears that even (0,0,1) will show the same 0000FF color that would be expected from (0,0,255)
I enjoy the challenge of designing in 3-bit color, just trying to learn the best practices for this sort of situation.
Beta Was this translation helpful? Give feedback.
All reactions