W3C home > Mailing lists > Public > www-style@w3.org > September 2011

Re: [css] Proposal: making Shorthand Hex Colors even shorter (16 grayscale shades)

From: Alex Danilo <alex@abbra.com>
Date: Wed, 07 Sep 2011 13:04:50 +1000
Message-Id: <2WT4RL.7B2Q793Q3074@abbra.com>
To: Shane Stephens <shans@google.com>
Cc: Marat Tanalin <mtanalin@yandex.ru>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style@w3.org
Hi Shane,

--Original Message--:
>RGB components are represented by 256 values precisely because of representational issues - that is, each component is represented by a single byte.
>Woah. That's a horrible sentence. I blame the fact that I'm sick...
>Let me try again:
>There's no reason in color theory why RGB components should be confined to 256 values. They're this way because the underlying representation is a byte; which as it turns out is the same as the underlying representation of the alpha component.

How about: "Historically many graphics engine implementations used a byte to represent a colour value,
that limits the possible resolution to 256 values and the hex notation reflects the historic implementations.
Each colour channel can be represented with arbitrary precision, e.g. OpenEXR which can store floats
per channel. Thus there is no distinction between a colour channel and an alpha channel in terms
of precision and/or resolution".


>    -Shane 
Received on Wednesday, 7 September 2011 03:05:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:04 UTC