---
title: "warped"
description: "Makes a field flow like liquid by bending its coordinate with moving noise."
group: "paint"
groupTitle: "Painting"
categoryId: "paint"
categorySlug: "paint"
categoryTitle: "Fields, palettes & ramps"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/fields.ts#L524"
---

# warped

Makes a field flow like liquid by bending its coordinate with moving noise.

```ts
warped(
  field: Field,
  opts: {amount: FieldScalar; amountScale?: number; timeScale?: number},
): Field
```

Import `paint` from `shaders/std` and use `paint.warped`.

`amount` sets how far the coordinate is pushed (0 is off), `amountScale` multiplies it so a 0–1 slider can reach further. The motion runs on the layer's clock times `timeScale`, so declare `animatedTime: {speed: 'speed'}`. Needs a 3D coordinate: put it inside `scaledVolume`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `field` | `Field` |  |
| `opts` | `{amount: FieldScalar; amountScale?: number; timeScale?: number}` |  |

## Example

```ts
scaledVolume(warped(noiseField('mx3'), {amount: p('warp'), amountScale: 4, timeScale: 0.125}), {scale: p('scale')})
```

## See also

- [`noiseField`](/docs/primitives/paint/noisefield) — A field of smooth noise in the chosen flavor.
- [`scaledVolume`](/docs/primitives/paint/scaledvolume) — Gives a noise field a zoomable, aspect-correct coordinate.
- [`warpedPoint`](/docs/primitives/paint/warpedpoint) — A 3D position pushed around by moving noise, for reading several fields at one warped spot.

## Used by

[Plasma](/docs/components/plasma)