Options for the optional debug grid drawn over painted heat maps.

interface HeatMapGridOptions {
    color?: [number, number, number];
    opacity?: number;
    spacing?: number;
    width?: number;
}

Properties

color?: [number, number, number]

sRGB grid line colour, components in [0, 1]. Default [0, 0, 0].

opacity?: number

Blend factor; 1 = fully opaque, 0 = invisible. Default 0.4.

spacing?: number

Pixels between adjacent grid lines. Defaults to ≈ size / 16, which gives a roughly 16-cell grid across the texture.

width?: number

Line width in pixels. Default 1.