Colormap constructor

Colormap(
  1. List<Color> colors
)

Creates a colormap with the specified colors. Raster value of 0 gets mapped to the first color in the array, and each consecutive raster value maps to the subsequenet color in the array.

Parameters:

  • colors — An array of colors.