W3C home > Mailing lists > Public > www-style@w3.org > May 2013

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

From: Brad Kemper <brad.kemper@gmail.com>
Date: Thu, 9 May 2013 14:00:38 -0700
Message-Id: <703D1E3C-A5A5-4266-83F8-33CA8AB93E91@gmail.com>
Cc: François REMY <francois.remy.dev@outlook.com>, Lea Verou <lea@w3.org>, Sebastian Zartner <sebastianzartner@gmail.com>, Jake Archibald <jaffathecake@gmail.com>, Šime Vidas <sime.vidas@gmail.com>, www-style list <www-style@w3.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
On May 9, 2013, at 1:33 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

>> color(red, alpha * 75%) vs color(red, alpha 50%)
> That one's intriguing, and pretty readable I think.  

The first one seems to mean that the red channel is set to 3/4 of the alpha (opacity) channel. I don't know what the second one is supposed to mean. 

If you want to set channels independently, I think it should be something like this: 

r(255); a(0.5);
rgba(255, *, *, 0.5)
r(#ff); a(#7f);
rgba(#ff, *, *, #7f)

Or various combinations of the above. 
Received on Thursday, 9 May 2013 21:01:09 UTC

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