Heatmap Color Scale
data class HeatmapColorScale(val colors: ImmutableList<Color>, val min: Double? = null, val max: Double? = null)(source)
Maps values to colors, shared by both render modes and the legend.
colors are evenly spaced from the lowest to the highest value, so two colors give a sequential scale and three colors around a zero midpoint give a diverging one. Colors blend linearly in sRGB between neighboring stops. Values outside the bounds draw with the nearest end color.