---
title: "dotScreen"
description: "A classic halftone filter: the layer inside it redrawn as a grid of dots that grow where it is bright."
group: "paint"
groupTitle: "Painting"
categoryId: "patterns"
categorySlug: "patterns"
categoryTitle: "Patterns & tiling"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/patterns.ts#L873"
---

# dotScreen

A classic halftone filter: the layer inside it redrawn as a grid of dots that grow where it is bright.

```ts
dotScreen(slots: {angle: PropRef; frequency: PropRef}): GatherEffect
```

Import `patterns` from `shaders/std` and use `patterns.dotScreen`.

Goes in `effect:`. `angle` is the screen angle in degrees (45 is the print default). `frequency` is the number of dots down the canvas height. The dots keep the child's own color; between dots the output is transparent.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{angle: PropRef; frequency: PropRef}` |  |

## Example

```ts
effect: dotScreen({angle: p('angle'), frequency: p('frequency')})
```

## See also

- [`cmykPress`](/docs/primitives/patterns/cmykpress) — A four-color print filter: the layer inside it separated into ink plates, each screened into dots at its own angle and laid down on paper in order.
- [`chosenBy`](/docs/primitives/patterns/chosenby) — Picks one whole effect recipe from a select prop, decided when the shader compiles.
- [`quantise`](/docs/primitives/patterns/quantise) — Reduces each grid cell of the layer inside to 0 or 1 using a dither pattern.

## Used by

[Halftone](/docs/components/halftone)