W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

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

From: Chris Lilley via GitHub <sysbot+gh@w3.org>
Date: Mon, 17 Dec 2018 23:14:37 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-448034893-1545088476-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:41 UTC