generateColorMap

fun generateColorMap(opacity: Double = HeatmapTileProvider.DEFAULT_OPACITY): IntArray

Generates a color map array from the gradient's colors and start points. This map is a key component for rendering the heatmap, where each color corresponds to a different intensity level.

The process involves interpolating between the specified colors in the HSV color space to create a smooth transition.

Return

An integer array representing the color map, where each element is a color integer.

Parameters

opacity

The overall opacity of the entire color map. Each color's alpha value will be multiplied by this factor. The default value is HeatmapTileProvider.DEFAULT_OPACITY.