Function: colormapLUT()
ts
function colormapLUT(spec?): Float32Array;Defined in: color/colormap.ts:183
The raw 256×3 (r,g,b in 0..1) lookup table for a colormap, cached per name. Hot loops (heatmap, colorBy, …) can index it directly — j = ((clamp(t)*255)|0)*3 — to avoid a per-element closure call and tuple allocation.
Parameters
| Parameter | Type | Default value |
|---|---|---|
spec | ColormapSpec | "viridis" |
Returns
Float32Array