---
title: "phosphorMask"
description: "A faint red, green and blue phosphor stripe pattern across the child."
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#L267"
---

# phosphorMask

A faint red, green and blue phosphor stripe pattern across the child.

```ts
phosphorMask(opts: {pitch: ArgSpec}): OverlayStage
```

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

`pitch` sets how many stripes fit across the canvas, about half of `pitch`; 8–128 is the usual range. Works on the three-channel color of a stack begun with `rgbSplit`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `opts` | `{pitch: ArgSpec}` |  |

## Example

```ts
phosphorMask({pitch: p('pixelSize')})
```

## See also

- [`scanlines`](/docs/primitives/effects-blurs/scanlines) — Horizontal scanlines darkening the child in a smooth wave.
- [`rgbSplit`](/docs/primitives/effects-blurs/rgbsplit) — The child with its red and blue pulled a little to either side, like a misaligned CRT.

## Used by

[CRTScreen](/docs/components/crtscreen)