---
title: "adjust"
description: "Brightness and contrast, pivoting around mid-grey."
group: "effects"
groupTitle: "Filters & effects"
categoryId: "effects.blurs"
categorySlug: "effects-blurs"
categoryTitle: "Blurs, glows & screens"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/effects/blurs.ts#L229"
---

# adjust

Brightness and contrast, pivoting around mid-grey.

```ts
adjust(opts: {brightness: ArgSpec; contrast: ArgSpec}): OverlayStage
```

Import `effects` from `shaders/std` and use `effects.blurs.adjust`.

1 leaves both unchanged; 0.5–2 is the usual range. Works on the three-channel color of a stack begun with `rgbSplit`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `opts` | `{brightness: ArgSpec; contrast: ArgSpec}` |  |

## Example

```ts
adjust({brightness: p('brightness'), contrast: p('contrast')})
```

## See also

- [`rgbSplit`](/docs/primitives/effects-blurs/rgbsplit) — The child with its red and blue pulled a little to either side, like a misaligned CRT.
- [`scanlines`](/docs/primitives/effects-blurs/scanlines) — Horizontal scanlines darkening the child in a smooth wave.
- [`opaque`](/docs/primitives/effects-blurs/opaque) — Closes a three-channel stack as a solid color with alpha 1.

## Used by

[CRTScreen](/docs/components/crtscreen)