RE: [css4-color] Grayscale shorthand (with alpha)

Thanks for the info.


Rudolph Gottesheim:
> The use cases I was talking about are, as I said, mostly shadows. And most of the time
> you don't want a color shift in your shadow. You just want to darken part of the background.

Can you elaborate on what you mean by "color shift"?  I'm curious if you mean something like "just multiple each color channel by a fixed constant" or something else.

Some examples off the top:
 #020202, #010101 (divide each channel by 2)
 #020802, #010401 (divide each channel by 2)
 #020802, #010601 (divide each channel by 1.5, then round)
 #ffffff, #080C08  (50% drop in R/B, 25% drop in G)
 #44CC44, #88FF88 (double each channel with clamping)



Rudolph Gottesheim:
> So my proposal was actually more about darkening and brightening with color, rather than an actual shorthand for gray, I guess.

This was one of my theories as well. :)

Received on Wednesday, 18 April 2012 20:16:10 UTC