op.wave
A wave step: the grid ripples outward from any disturbance and fades by damping (a prop, 0–20).
op.wave(config: {damping: PropRef}): WaveOp
Import op from shaders/std and use op.wave.
Parameters
| Name | Type | Notes |
|---|---|---|
config | {damping: PropRef} |
Example
op.wave({damping: p('decay')})
Tip. Declare
history: 2on the grid. A wave needs the two previous frames.
See also
op.splat— A brush step: a soft round push into the grid at the pointer, scaled by how fast it moves.