(Apologies for lateness in reply: work has intervened!)
On Sun, 18 Feb 2001, Mariano Alvarez Fernandez wrote:
)By example in 16 color you have 16 index to colors. If you perform 1 XOR 2 you )obtain index color 3. Now, if you don't have assigned the index color 3 what )color is it?. Te answer is "undefined".
A-ha. So as long as I define 2^n colours, everything behaves as expected? Does undefined refer to weird library behaviour, or is there a default behaviour for undefined colours?
I don't expect this to be a problem, as I will probably just use EGA emulation for the time being: I just ask for information :)
J-P
)By example in 16 color you have 16 index to colors. If you perform 1 XOR 2 you )obtain index color 3. Now, if you don't have assigned the index color 3 what )color is it?. Te answer is "undefined".
A-ha. So as long as I define 2^n colours, everything behaves as expected?
Yes, I think.
Does undefined refer to weird library behaviour, or is there a default behaviour for undefined colours?
Undefined means it's platform dependent. By example with the "stdvga" driver you have the 16 ega colors without set any color, but you can't expect other drivers or platform do the same.