On Mon, Aug 9, 2010 at 8:55 AM, Chris Eppstein <[email protected]> wrote:

> Agreed. I don't want to create a barrier to upgrade so we need to think
> about
> how to make this relatively painless. Perhaps the deprecation warnings
> could
> suggest a functional composition that returns the same value.
>

This would be very difficult to do (and maybe impossible to do elegantly) in
the general case, unless we added functions that do piecewise arithmetic.
Basically we'd have to find some arbitrary composition of operators that
took one color to another.

I agree. I often find myself converting an amount of color to percent in my
> head. I wonder: if we define 1sh (sh = shade) as a #010101 (or #01 in a
> particular color dimension = 1/256th of a color). Then we could do:
> lighten(#ccc, 16sh) and this would be equivalent to #ccc + #111 (in the
> grayscale color space).
>

Adding a new unit, while clever, is highly non-discoverable. If we want an
absolute lightness operator, I think adjust-lightness() would be preferable.

- Nathan

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to