I have one color that is a parameter to a template.
I want 3 shades of this color, with the supplied shade being the lightest and one darker() being the darkest. How can I get one shade in-between color and darkest? (i.e.avg(color,darkest))
I feel like darker() and lighter() would be more useful with another arg for the % between this shade and next (100% would be darker() 0% would be no change).
Ah, I was wrong about toInt. We made toHex work for colors to return web-ish color strings more easily. I suppose you could also fromHex(toHex(color)) to get an int.
Oddly enough, converting back to hex and then to color doesn't work.
**edit: I guess I didn't type it right the first time because it definitely works now... but doing the average of two integer-converted hex colors does not give you a shade in-between.