---
title: "pointerSpeed"
description: "The pointer's speed, capped at `max`, as the strength of a simulation step."
group: "space"
groupTitle: "Shapes, frames & warps"
categoryId: "signal"
categorySlug: "signal"
categoryTitle: "Signals"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/signal.ts#L66"
---

# pointerSpeed

The pointer's speed, capped at `max`, as the strength of a simulation step.

```ts
pointerSpeed(opts?: {max?: number}): PointerSpeedSignal
```

Import `signal` from `shaders/std` and use `signal.pointerSpeed`.

Speed is in uv per second. A still cursor gives 0, a flick across the canvas gives a value near `max`. Default cap is 2.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `opts` | `{max?: number}` | Optional. |

## Example

```ts
op.splat({at: pointer(), amount: pointerSpeed({max: 2}), radius: p('radius')})
```

## See also

- [`pointer`](/docs/primitives/signal/pointer) — The pointer's position, for a simulation step that reacts to the cursor.

## Used by

[CursorRipples](/docs/components/cursorripples)