---
title: "op.wave"
description: "A wave step: the grid ripples outward from any disturbance and fades by `damping` (a prop, 0–20)."
group: "simulation"
groupTitle: "Simulation"
categoryId: "simulate"
categorySlug: "simulate"
categoryTitle: "Simulate"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/sim.ts#L97"
---

# op.wave

A wave step: the grid ripples outward from any disturbance and fades by `damping` (a prop, 0–20).

```ts
op.wave(config: {damping: PropRef}): WaveOp
```

Import `op` from `shaders/std` and use `op.wave`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `config` | `{damping: PropRef}` |  |

## Example

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

> **Tip.** Declare `history: 2` on the grid. A wave needs the two previous frames.

## See also

- [`op.splat`](/docs/primitives/simulate/op-splat) — A brush step: a soft round push into the grid at the pointer, scaled by how fast it moves.

## Used by

[CursorRipples](/docs/components/cursorripples)