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

NameTypeNotes
config{damping: PropRef}

Example

op.wave({damping: p('decay')})

Tip. Declare history: 2 on 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.

Used by

CursorRipples