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.
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.
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.