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: Rik Cabanier <cabanier@gmail.com>
Date: Thu, 9 May 2013 20:25:15 -0700
Message-ID: <CAGN7qDC2VNyyAcCFHM8QjH70QDMtd8AnOf3VEX-Ps=61zonAmQ@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: (wrong string) Šime Vidas <sime.vidas@gmail.com>, www-style list <www-style@w3.org>
On Thu, May 9, 2013 at 8:20 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> On Thu, May 9, 2013 at 8:00 PM, Rik Cabanier <cabanier@gmail.com> wrote:
> > On Thu, May 9, 2013 at 7:44 PM, Tab Atkins Jr. <jackalmage@gmail.com>
> wrote:
> >> On Thu, May 9, 2013 at 7:41 PM, Rik Cabanier <cabanier@gmail.com>
> wrote:
> >> > 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?
> >>
> >> The color-altering functions in SASS are *very* popular and
> >> widely-used.  They're often used in combination with SASS variables,
> >> in ways that translate over directly to CSS variables.
> >
> > Interesting!
> > Why would you want this supported natively (instead of having the author
> > calculate it in advance). Is it so you can transition between luminance
> > value?
>
> Ignore "luminance" for now - Lea meant "lightness", as in the L from HSL.
>  ^_^
>

ah yes. :-)


>
> Again, the SASS functions show how popular it is to have it calculated
> automatically, even though it *could* of course all be done manually.
> Authors seem to like just being able to lighten a chosen color, etc.
>
> Manually adjusting colors isn't trivial, and is error-prone.  If you
> change the "base" color that the rest are based on, you have to redo
> all of your calculations.  By using variables and color functions, you
> can change the whole suite of colors automatically.


Not that I'm disagreeing, but if authors like this so much, why don't any
design tools (that I know of) offer such a notation?
Received on Friday, 10 May 2013 03:25:42 UTC

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