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: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 9 May 2013 15:05:45 -0700
Message-ID: <CAAWBYDCiZ3KoszFPs3V8nRR7C3PKmK16caWF_SMTV0e5dL_ONA@mail.gmail.com>
To: Sebastian Zartner <sebastianzartner@gmail.com>
Cc: "Sam L'ecuyer" <sam@cateches.is>, Brad Kemper <brad.kemper@gmail.com>, François REMY <francois.remy.dev@outlook.com>, Lea Verou <lea@w3.org>, Jake Archibald <jaffathecake@gmail.com>, Šime Vidas <sime.vidas@gmail.com>, www-style list <www-style@w3.org>
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
Received on Thursday, 9 May 2013 22:06:31 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:27 UTC