---
title: "opaque"
description: "Closes a three-channel stack as a solid color with alpha 1."
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#L304"
---

# opaque

Closes a three-channel stack as a solid color with alpha 1.

```ts
opaque(): OverlayStage
```

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

Put it last after `rgbSplit`, `adjust`, `scanlines`, `phosphorMask` or `vignetteOverlay`, which work on color only and drop the child's alpha.

## Example

```ts
effect: gatherStack(rgbSplit({amount: 1}), [scanlines({frequency: 200, intensity: 0.3}), opaque()])
```

## 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.
- [`gatherStack`](/docs/primitives/effects-blurs/gatherstack) — Assemble an effect from one sampling stage and an ordered list of overlay stages.

## Used by

[CRTScreen](/docs/components/crtscreen)