This method is used for cases in which we are provided with a different number of colors than we need.
This method is used for cases in which we are provided with a different number of colors than we need. This method will return a smaller list of colors the provided list of colors, spaced out amongst the provided color list.
For example, if we are provided a list of 9 colors on a red to green gradient, but only need a list of 3, we expect to get back a list of 3 colors with the first being red, the second color being the 5th color (between red and green), and the last being green.
Provided RGBA color values
Length of list to return
All colors in geotrellis are encoded as RGBA integer values.
This object provides utility methods that operate on RGBA integer values.