Lars C. Hassing wrote in http://www.lugnet.com/cad/dev/?
n=4187
> (snip)
> During implementation of Gyugyi's Direct Colors, I
browsed his LDLite
code:
> (snip)
> and read his doc:
> (snip)
> The code and the doc doesn't match!
> If the code is the "truth", then the hex ranges in the
last two
> paragraphs should be swapped:
> (snip)
> Please decide which to change, the code or the doc.
> (FYI MLCad follows the code)
Well, Paul, have you decided?
> Also I would like to suggest that 16 is replaced with 17
(0x11):
>
> | zcp->r = 17 * ((c & 0x00000f00) >> 8);
> | zcp->g = 17 * ((c & 0x000000f0) >> 4);
> | zcp->b = 17 * ((c & 0x0000000f) >> 0);
>
> In this way the max color intensity of 15 (0xF) gets
mapped to 255 (0xFF)
> in stead of just 240 (0xF0).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=30782
Lars C. Hassing wrote in http://www.lugnet.com/cad/dev/?
n=4187
> (snip)
> During implementation of Gyugyi's Direct Colors, I
browsed his LDLite
code:
> (snip)
> and read his doc:
> (snip)
> The code and the doc doesn't match!
> If the code is the "truth", then the hex ranges in the
last two
> paragraphs should be swapped:
> (snip)
> Please decide which to change, the code or the doc.
> (FYI MLCad follows the code)
Well, Paul, have you decided?
> Also I would like to suggest that 16 is replaced with 17
(0x11):
>
> | zcp->r = 17 * ((c & 0x00000f00) >> 8);
> | zcp->g = 17 * ((c & 0x000000f0) >> 4);
> | zcp->b = 17 * ((c & 0x0000000f) >> 0);
>
> In this way the max color intensity of 15 (0xF) gets
mapped to 255 (0xFF)
> in stead of just 240 (0xF0).
Logged In: YES
user_id=24760
I updated the web page to match the code.