Returns a color for the specified value from the array of provided colors. This function will divide the range [0, 1] into equally-sized subranges based on the number of colors provided and then return the color whose subrange contains the specified value.
Name Type Description
Array.<string> An array of provided colors that will be divided into equally sized subranges based on the number of colors provided.
number The value for which a color should be returned. Value will be constrained to 0, 1 if outside that range.
The color whose subrange contains the specified value