Function: buildColorscaleLUT()
ts
function buildColorscaleLUT(scale, size?, out?, space?): Uint8Array;Experimental
Build the RGBA8 LUT for a colorscale: texel i holds the color at t = i / (size - 1), interpolated in space (default sRGB).
Parameters
| Parameter | Type | Default value |
|---|---|---|
scale | Colorscale | undefined |
size | number | COLORSCALE_LUT_SIZE |
out | Uint8Array | ... |
space | ColorscaleInterpolation | 'rgb' |
Returns
Uint8Array