overlays

overlays.heatDiffusion

heatDiffusion(sourceNodeIds: string | string[], config?: HeatDiffusionConfig): string

Start a heat diffusion overlay that spreads color from source nodes to their neighbors one hop per tick.

Node colors are interpolated on a temperature gradient (hot → cool) as the diffusion frontier expands. The effect self-terminates when the entire reachable subgraph has been colored or a configured max-hop is reached.

Not undoable. Not recorded in history.

sourceNodeIdsstring | string[]One or more "hot" source node IDs.
configHeatDiffusionConfigOptional HeatDiffusionConfig (maxHops, hotColor, coolColor, speed).

Returns: string