ColormapRenderer.withColors constructor

ColormapRenderer.withColors(
  1. List<Color> colors
)

Creates a raster colormap renderer with a colormap created from the specified colors. Raster value of 0 maps to the first color, with each consecutive value mapping to the next color.

Parameters: