I want to map an arbitrary value to a color scale, for use in a heat map.
I already have the ability to generate a color spectrum between 2 extreme colors as an array