Extend the functionality of merge_color to allow for any number of colors to interpolate between.
Example usage:
colors[5] = c_purple; // value 1.0
colors[4] = c_blue; // value 0.8
colors[3] = c_green; // value 0.6
colors[2] = c_yellow; // value 0.4
colors[1] = c_orange; // value 0.2
colors[0] = c_red; // value 0.0
// This will give you half way between Orange and Yellow.
value = color_lerp(colors, .3);
Check out my other marketplace listings
Thanks for viewing!
End User Licence Agreement (EULA).
initial commit