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 g.setColor(0,0,127); when g.setColor(0,0,0.5); is what you meant to do?
g.setColor(0,0,127);
g.setColor(0,0,0.5);
@Gordon started
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.
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
g.setColor(0,0,127);
wheng.setColor(0,0,0.5);
is what you meant to do?