Colormap.fromValuesAndColors constructor

Colormap.fromValuesAndColors(
  1. Map<int, Color> colorMappings
)

Creates a colormap with the specified mapping of raster values to colors.

Parameters:

  • colorMappings — A Map of values with corresponding colors.