Re: [csswg-drafts] [css-color] Range of color parameters to the color() function is inconsistent (#2021)

> For me, the range 0..255 is more useful. The 0..255 range is used in rgb() and rgba(). Please look at the colour select in GIMP and MS Paint. I cannot have to convert it to 0..1 range specially for CSS.

0 to 255 is currently more *common*, yes, though that will change as 10 and 12 bit per component color becomes more widespread with the adoption of Wide Color Gamut (WCG) and High Dynamic Range (HDR); both of which require more bits.

Having to remember that 127, 511, and 2047 are all _"half way through the code space"_ (at 8,10 and 12 bits per component) is less easy than the value in a bit-depth-neutral 0.0 to 1.0 space, which is simply **0.5**.

MS Paint is not exactly setting the bar very high, and GIMP has supported 16 bit per component color for years now.


-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2021#issuecomment-448034893 using your GitHub account

Received on Monday, 17 December 2018 23:14:38 UTC