I'd really like to see some color manipulation functions like lighten, darken, saturate, desaturate, but I think it's a challenge to make these work intuitively. Perhaps we can use compass to experiment with them and roll them into core once we get it right. I'm ok with adding a blend function to compass as well -- I've written it for a side project before ( http://gist.github.com/58920). I don't see it as harmful, but I don't know that it's generally useful.
Thoughts? Chris On Thu, Feb 5, 2009 at 10:01 AM, Nathan Weizenbaum <[email protected]> wrote: > Blending colors is always kind of tricky. I'm not sure this produces > reasonable results... the output color is always going to be lighter than at > least the first arg and probably the second, which seems quite unintuitive. > > > On Thu, Feb 5, 2009 at 7:06 AM, Sven Helmberger <[email protected]> wrote: > >> >> Hello.. >> >> I discovered your project on teh intertubes and I'm especially fond of >> Sass which looks like it would be perfect for our project. >> >> I wrote an additional function to add to Sass' builtins which is a >> blend function >> >> it takes three arguments: >> >> blend( start_color, end_color, position) >> >> it returns a blend of the two given colors at the given position where >> the position has to be between 0 (result equals the start color) and 1 >> (the result equals the end color). >> >> This is extremely useful to generate new colors based on theme base >> colors. >> >> The patch is available at http://pastie.org/380671 >> >> (The ruby code in itself is most likely not optimal seeing that this >> was actually the first thing I wrote in ruby) >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
