Skip to main content

Interface: HeatMapOptions

Defined in: src/mobjects/graphing/HeatMap.ts:12

Options for creating a HeatMap.

Properties​

center?​

optional center: Vector3Tuple

Defined in: src/mobjects/graphing/HeatMap.ts:30

Center position [x, y, z]. Default: [0, 0, 0]


domain?​

optional domain: [number, number]

Defined in: src/mobjects/graphing/HeatMap.ts:22

Value domain [min, max] mapped across the palette. Auto-computed if omitted.


func​

func: ScalarField2D

Defined in: src/mobjects/graphing/HeatMap.ts:14

The scalar field g(x, y) to visualize.


opacity?​

optional opacity: number

Defined in: src/mobjects/graphing/HeatMap.ts:28

Opacity from 0 to 1. Default: 1


palette?​

optional palette: readonly string[]

Defined in: src/mobjects/graphing/HeatMap.ts:24

Ordered hex color stops. Default: a viridis-like palette.


resolution?​

optional resolution: number | [number, number]

Defined in: src/mobjects/graphing/HeatMap.ts:20

Grid cells per axis, or [nx, ny]. Default: 64


useOklab?​

optional useOklab: boolean

Defined in: src/mobjects/graphing/HeatMap.ts:26

Blend the palette in perceptually-uniform Oklab space. Default: false


xRange?​

optional xRange: [number, number]

Defined in: src/mobjects/graphing/HeatMap.ts:16

X range [min, max]. Default: [-5, 5]


yRange?​

optional yRange: [number, number]

Defined in: src/mobjects/graphing/HeatMap.ts:18

Y range [min, max]. Default: [-5, 5]