Maybe you can see writing colors as selecting a pen, instead of constantly 
configuring your pen.
I'd prefer that one, too. And I would want to be able to write in e.g. red on 
black, so we would need a background and a foreground color. Therefore this 
variant would need six bytes of ram, while matt's version could use only extra 
program memory and no extra ram at all.

And, for the number of colors, I would propose not to use the actual number, 
but the number of bits per pixel. There are only a few numbers used:

2 Colors: 1 Bit
32768 colors: 15 bit (5 bit for RGB each)
65536 colors: 16 bit (5 bit for R and B, 6 bit for G)
262144 colors: 18 bit (6 bit for RGB each)
16777216 colors: 24 bit (8 bit for RGB each)

As much as I know other color depths are used very rarely, and are usually 
indexed, so useless when short on ram as you are always on PIC controllers ;-)

Greets, 
Kiste



-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to