op.host
A named step that runs before any gate: pointer smoothing, activity flags, anything a later settle needs to know.
op.host(name: string, run: (f: GridFrame) => void): GridStage
Import sim from shaders/std and use sim.grids.op.host.
Parameters
| Name | Type | Notes |
|---|---|---|
name | string | |
run | (f: GridFrame) => void |
Example
op.host('cursor', (f) => { active = (f.frameParams.pointer?.x ?? 0.5) !== lastX })