And just for the records: here is the same experiment for "quarter colors", i.e. RGB channel values 0, 0.25, 0.5, 0.75 and 1.0:
let ScreenWidth = g.getWidth(), PatchWidth = ScreenWidth/12;
let ScreenHeight = g.getHeight(), PatchHeight = ScreenHeight/12;
g.clear();
for (let i = 0; i < 125; i++) {
let x = (i % 12) * PatchWidth;
let y = Math.floor(i/12) * PatchHeight;
let R = i % 5;
let G = Math.floor(i/5) % 5;
let B = Math.floor(i/25);
g.setColor(R/4,G/4,B/4);
g.fillRect(x,y, x+PatchWidth-1,y+PatchHeight-1);
}
It seems that channel values 0/0.5/1.0 still look acceptable while quarter values do not...
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.
And just for the records: here is the same experiment for "quarter colors", i.e. RGB channel values 0, 0.25, 0.5, 0.75 and 1.0:
It seems that channel values 0/0.5/1.0 still look acceptable while quarter values do not...
1 Attachment