overlays.heatDiffusion
heatDiffusion(sourceNodeIds: string | string[], config?: HeatDiffusionConfig): stringStart 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.
sourceNodeIds | string | string[] | One or more "hot" source node IDs. |
config | HeatDiffusionConfig | Optional HeatDiffusionConfig (maxHops, hotColor, coolColor, speed). |
Returns: string