![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
I think it was mor an issue of 6^3 < 256 and I'm sure win 3.1 let me define more than 40 custom colours. |
|
if a 12 bit palette #FFF was promoted to 24 bit by simply multiplying each element by 16 (0x10) the dynamic range wopuld suffer #F0F0F0 (a kind of dirty snow colour) would be the whitest available. |
#12
| |||
| |||
|
|
Michael Winter wrote: |
|
The representation of a particular colour value may differ between devices, but #bad and #bbaadd, for example, /must/ be rendered as the same colour on the same device. You are missing the point. If the display device does not run with a color depth of 24 bit (16'777'216 colors) or more, it _cannot_ display the color #bbaadd (12'298'973) the same way as if it was a display device that ran with such a color depth using the same color components. |
|
The reason is that #bbaadd depends on the color depth of the display device, while #bad [(round(11/15*m), round(10/15*m), round(13/15*m)); m := max(2^color_depth - 1, 255)] does not. |
#13
| |||||
| |||||
|
|
On 23/01/2006 17:21, Thomas 'PointedEars' Lahn wrote: Michael Winter wrote: The representation of a particular colour value may differ between devices, but #bad and #bbaadd, for example, /must/ be rendered as the same colour on the same device. You are missing the point. If the display device does not run with a color depth of 24 bit (16'777'216 colors) or more, it _cannot_ display the color #bbaadd (12'298'973) the same way as if it was a display device that ran with such a color depth using the same color components. I already acknowledged that, above. |
|
The reason is that #bbaadd depends on the color depth of the display device, while #bad [(round(11/15*m), round(10/15*m), round(13/15*m)); m := max(2^color_depth - 1, 255)] does not. For 'replicated digits' (0x00, 0x11, etc.), the result is the same if the divisor is adjusted to 255. |
|
That is, 187 / 255 == 11 / 15 and, 170 / 255 == 10 / 15 and, 221 / 255 == 13 / 15 |
|
so the value of m is irrelevant. |
|
You previously asserted that these colours would not be the same. |
#14
| |||||
| |||||
|
|
Michael Winter wrote: On 23/01/2006 17:21, Thomas 'PointedEars' Lahn wrote: Michael Winter wrote: The representation of a particular colour value may differ between devices, but #bad and #bbaadd, for example, /must/ be rendered as the same colour on the same device. You are missing the point. If the display device does not run with a color depth of 24 bit (16'777'216 colors) or more, it _cannot_ display the color #bbaadd (12'298'973) the same way as if it was a display device that ran with such a color depth using the same color components. I already acknowledged that, above. No, you did not. The point is that we are trying to be as interoperable as possible here, among different devices. |
|
The reason is that #bbaadd depends on the color depth of the display device, while #bad [(round(11/15*m), round(10/15*m), round(13/15*m)); m := max(2^color_depth - 1, 255)] does not. For 'replicated digits' (0x00, 0x11, etc.), the result is the same if the divisor is adjusted to 255. news:2820787.IrJziKQuUd (AT) PointedEars (DOT) de corrects this misformulation. Internal "digit replication" does not occur with insufficient color depth. |
|
Forget about "digit replication" in the first place, this is not what happens! It is but an example in the CSS Specification to explain that the three-digit notation is independent of color depth. What really happens is adjustment of the color value to the color depth provided by and set for the display driver; the result is _as if_ the digit of each component was replicated if, and only if, the color depth is 8 bit or greater. |
|
That is, 187 / 255 == 11 / 15 and, 170 / 255 == 10 / 15 and, 221 / 255 == 13 / 15 Correct, however you used the wrong equation I provided first instead of the correct one I provided nine minutes later, long enough before your followup. (And even common sense could have told you that this equation cannot be correct...) so the value of m is irrelevant. Not at all. You previously asserted that these colours would not be the same. The color _components_ are the same _if_ m == 255. I did not debate that, in fact that was exactly my point. If, and _only_ if, m == 255, that is, a color depth of 8 bit or greater. (The displayed color with that minimum color depth, however, is another thing.) However, they are not the same if `m' is smaller than that. |
|
If you feed a display driver, say the VGA driver (64 possible values for each color component, hence a color depth of 6 bit), a color component value that is out of range, it could either scale it down into range, inevitably with an _information loss_ (that does not happen with a three-digit value), or it could not scale it down it into range. It would therefore, very likely in the former case and certainly in the latter case, display a different color than _another_ device with the same configuration except of the color depth (not considering greyscale displays, of course), given the same color value. |
#15
| |||||
| |||||
|
|
The reason is that #bbaadd depends on the color depth of the display device, while #bad [(round(11/15*m), round(10/15*m), round(13/15*m)); m := max(2^color_depth - 1, 255)] does not. For 'replicated digits' (0x00, 0x11, etc.), the result is the same if the divisor is adjusted to 255. news:2820787.IrJziKQuUd (AT) PointedEars (DOT) de corrects this misformulation. |
|
You previously asserted that these colours would not be the same. The color _components_ are the same _if_ m == 255. I did not debate that, [...] |
|
If you feed a display driver, say the VGA driver (64 possible values for each color component, hence a color depth of 6 bit), |
|
a color component value that is out of range, |
|
it could either scale it down into range, inevitably with an _information loss_ [...] |
#16
| |||
| |||
|
#17
| |||
| |||
|
|
Once again: taking a 8-bit color depth (256 colors) there are 216 colors which are guaranteed to display equally on Windows, Mac OS and Unix clones. 40 colors will differ on different platforms despite their hex triplets are the same. |
#18
| |||
| |||
|
|
[...] "VK" [...] wrote [...]: Once again: taking a 8-bit color depth (256 colors) there are 216 colors which are guaranteed to display equally on Windows, Mac OS and Unix clones. 40 colors will differ on different platforms despite their hex triplets are the same. The so-called Web Safe Colors have been obsolete since at least 2000. |
|
Nobody uses 256 colors any more. |
|
Not sure why it is even mentioned at w3c. |
#19
| |||
| |||
|
|
Besides, you have not understood the difference and the connection between the Netscape Web-safe Colors palette, color-depth independent CSS colors and True Web-Safe (CSS) colors. |
|
Because the W3C people care about interoperable document resources, and are therefore competent regarding Web authoring, in contrast to you. |
#20
| |||
| |||
|
|
Thomas 'PointedEars' Lahn wrote: |
|
True Web-Safe (CSS) colors is a new term coined in your own revelations. |
![]() |
| Thread Tools | |
| Display Modes | |
| |