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 -~----------~----~----~----~------~----~------~--~---
