Re: [css-color] Have you considered standardizing a rgba(#RRGGBB, <alpha-value>) notation?

On Thu, May 9, 2013 at 7:22 PM, Alan Gresley <alan@css-class.com> wrote:

> On 10/05/2013 8:05 AM, Tab Atkins Jr. wrote:
>
>> On Thu, May 9, 2013 at 3:03 PM, Sebastian Zartner
>> <sebastianzartner@gmail.com> wrote:
>>
>>> I want to add one example:
>>>
>>> color(rgb(255, 69, 0), .5);
>>>
>>
>> Since this doesn't specify a channel for the second argument, it
>> woudl be invalid.
>>
>>  Instead of having different functions for color effects like
>>> changing the brightness like Lea said earlier, the color() function
>>> could also do this:
>>>
>>> color(#ff4500, saturation - 20%);
>>>
>> >> color(orangered, luminance 50%);
>
>>
>>> Not sure if this approach is better than having different
>>> functions, though.
>>>
>>
>> Yes, this is my preferred solution now.
>>
>> ~TJ
>>
>
> How does the below work with display devices that uses pixels that are a
> composite of red, green blue sub-pixels?
>
>
> color(#ff4500, saturation - 20%);
> color(orangered, luminance 50%);
>

HSL is an alternate representation of RGB. There's no magic mapping between
color gamuts like you would need for Lab.
How useful would this be though. Does anyone think in these terms?

Received on Friday, 10 May 2013 02:41:31 UTC