---
title: "vignetteOverlay"
description: "Darkens the child toward its corners."
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#L285"
---

# vignetteOverlay

Darkens the child toward its corners.

```ts
vignetteOverlay(opts: {radius: ArgSpec; intensity: ArgSpec}): OverlayStage
```

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

`radius` (0–1) is how far the darkening reaches inward, 0 for the edges only and 1 for all the way to the centre. `intensity` (0–1) blends it in. Round on any canvas shape. Works on the three-channel color of a stack begun with `rgbSplit`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `opts` | `{radius: ArgSpec; intensity: ArgSpec}` |  |

## Example

```ts
vignetteOverlay({radius: p('vignetteRadius'), intensity: p('vignetteIntensity')})
```

## See also

- [`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)