# paint

function in `@dioramajs/text/unfold`

```ts
import { paint } from '@dioramajs/text/unfold'
```

The order to paint the cuts in, back to front, for an eye at `eye` (element frame). A cut's
children fold to its front: they go after it when the eye is on that side, before it otherwise.
Siblings go by their height over the parent's plane, then the farthest from the eye first.

```ts
function paint(sheet: Sheet, placed: readonly Placed[], eye: Vec3): number[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `sheet` | `Sheet` |  |
| `placed` | `readonly Placed[]` |  |
| `eye` | `Vec3` |  |

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