---
title: "dithered"
description: "Adds a tiny amount of noise to a final color so long soft gradients show no banding."
group: "paint"
groupTitle: "Painting"
categoryId: "compose"
categorySlug: "compose"
categoryTitle: "Layering & output"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/compose.ts#L135"
---

# dithered

Adds a tiny amount of noise to a final color so long soft gradients show no banding.

```ts
dithered(color: Expr, params: GpuFragmentParams): Expr
```

Import `compose` from `shaders/std` and use `compose.dithered`.

Apply it to the finished rgba, never to a value that still feeds a palette.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `color` | `Expr` |  |
| `params` | `GpuFragmentParams` |  |

## Example

```ts
paint: (params) => dithered(standardPalette(field, params), params)
```

## See also

- [`emissiveAlpha`](/docs/primitives/compose/emissivealpha) — Turns an rgb light value into a color with alpha, so glows composite over transparency.

## Used by

[MeshGradient](/docs/components/meshgradient)