Options accepted by repaintHeatMapColor.

interface RepaintHeatMapColorOptions {
    backgroundColor?: [number, number, number];
    coveredScratch?: Uint8Array;
    grid?: boolean | HeatMapGridOptions;
    ramp?: readonly HeatMapStop[];
    range?: [number, number];
}

Properties

backgroundColor?: [number, number, number]

RGB fill for pixels not covered by any triangle. Default [0, 0, 0].

coveredScratch?: Uint8Array

Reusable coverage scratch (Uint8Array of length ≥ width × height). Allocated internally if absent — pre-allocate and reuse across calls when repainting many heat maps per frame (live solar / sensor sweeps) to keep GC quiet.

grid?: boolean | HeatMapGridOptions

Optional grid overlay; same shape as on paintHeatMap.

ramp?: readonly HeatMapStop[]

Colour ramp. Default DEFAULT_HEATMAP_RAMP.

range?: [number, number]

Scalar value range mapped onto the ramp's [0, 1] domain. Auto- computed from the input scalars when omitted.