Skip to content

Function: heatmapColorAt() ​

ts
function heatmapColorAt(data, x, y, transform?): RGBA | undefined;

Experimental

Straight-alpha sRGB color at data point (x, y) (without the LUT's 8-bit quantization), or undefined where transparent. Defaults as in createHeatmapPrimitive.

Parameters ​

ParameterTypeDefault value
dataHeatmapInputundefined
xnumberundefined
ynumberundefined
transformDataTransformIDENTITY_TRANSFORM

Returns ​

RGBA | undefined

Released under the MIT License.