Colorize points by a heatmap gradient.
Maps scalar values to a blue→cyan→green→yellow→red color gradient.
values
min
max
Uint8Array of RGB values [r0, g0, b0, r1, g1, b1, ...]
[r0, g0, b0, r1, g1, b1, ...]
Colorize points by a heatmap gradient.
Maps scalar values to a blue→cyan→green→yellow→red color gradient.
Parameters
values: Float32Array of scalar values (one per point)min: Minimum value for the gradient rangemax: Maximum value for the gradient rangeReturns
Uint8Array of RGB values
[r0, g0, b0, r1, g1, b1, ...]