+1 to rgba(color-value, alpha-value) or a new function that takes those
arguments
Eg:
rgba(#f00, 0.5);
rgba(#f00, 50%);
rgba(red, .5);
rgba(rgb(255, 0, 0), 50%); /* not particularly useful, but showing that any
color value is acceptable */
rgba(#f000, 50%); /* here the 50% alpha would take precedence over the 0
alpha in the first arg */
As for darken/lighten/etc, I can't say I've used them much, but if others
do, fair enough.
On 7 May 2013 17:21, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> On Tue, May 7, 2013 at 6:45 AM, Lea Verou <lea@w3.org> wrote:
> > I think we’re starting to need color manipulation functions. They are
> going
> > to be immensely useful when combined with variables too, but also
> different
> > color formats, named colors etc. For example, LESS has color functions
> like
> > alpha(), darken(), lighten() etc.
>
> This. Every preprocessor has color-manipulation functions, and from
> what I understand, they're used quite regularly. I plan to put them
> into my unofficial draft - we'll see what ends up showing up in Colors
> 4.
>
> ~TJ
>
>