4 ms·
Would that mean the RGB values change in the future? It would go from 0-F to 0-K wouldn't it? so... #KKK = white? ;(
by handonam 11y ago
Would that mean the RGB values change in the future?
It would go from 0-F to 0-K wouldn't it?
so... #KKK = white? ;(
- huuu 11y agoA lot of software already use normalized RGB. rgb(1.0, 1.0, 1.0) == white
- StavrosK 11y agoAnd the idea is that you specify as many decimals as you need there?
- huuu 11y agoYes but that's an interface problem. Ofcourse you can't provide more decimals than the number of bits used by the float. EDIT: 0.999 * 255 (8 bit) = 255 0.9999 * 255 (8 bit) = 255 0.999 * 4096 (12 bit) = 4092 0.9999 * 4096 (12 bit) = 4096 So for lower color depths the number of decimals isn't that important.
- mojuba 11y agoLook up CSS-color level 4. It supports non-integer arguments for rgb() and rgba() which supposedly solves the problem, though in a bit ugly way, because the total range is still 0..255.
- raverbashing 11y agoHilarious, but no, that's not how it's going to work You get a number in front of ff from 0 to 3, so 3ff is the maximum instead of ff