I'm looking for a function that would return a hex color given 2 end
points of a color gradient and a percentage. My idea is to color code
search results based on a calculation. This calculation would be
different than the calculation used to sort the results.
Possible function:
function calculateGradientColor(color1:String, color2:String,
percent:Number) {
/* magic formula */
return gradientColor:String;
}
Does anyone have any ideas? Is it mathematically possible?
Thanks,
Jeff
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com