# pattern

function in `@dioramajs/text/text-glitch`

```ts
import { pattern } from '@dioramajs/text/text-glitch'
```

Cuts the text into horizontal slabs for one step of the pattern and writes their layers back
to front: the hologram, the red and cyan layers, the sides of an extruded block, then the text
itself on top. Slabs left in place merge, and at level 0 it is the flat text in one layer.

```ts
function pattern(step: Step, out: Slabs): void
```

| Parameter | Type | Description |
| --- | --- | --- |
| `step` | `Step` |  |
| `out` | `Slabs` |  |

Defined in [packages/text/src/text-glitch.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/text-glitch.ts#L259).
