Code for linear interpolation between two colors
Merged with old code