Hi,
I was thinking of something like this in the rfb16ToHalftonedFramebuffer4() function.
From:
Code:
if(c < *mp++) {
dval |= 0x0F;
}
To:
Code:
if(c <= BLK || (c <= WHT && c < *mp++)) {
dval |= 0x0F;
}
where BLK and WHT can be read from the command line.
Maybe BLK = 4 and WHT = 11 or something else.
This would allow easy testing instead of changing the dithering table.
I am not sure how to do this in geekmaster's formula...
Thanks,
James