# Field

interface in `@dioramajs/text/pins`

```ts
import type { Field } from '@dioramajs/text/pins'
```

The pins over a box and how far each stands out at rest.

```ts
interface Field
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `at` | `Float32Array` | Per pin: x, y in box px (y down) and the UV of its texel in the height texture. |
| `cell` | `Uint32Array` | Per pin: its texel in the height texture, row by row over `cols` by `rows`. |
| `cols` | `number` |  |
| `count` | `number` |  |
| `hex` | `boolean` | Odd rows shifted by half a pitch. |
| `info` | `Float32Array` | Per pin: relief at rest 0..1, a random 0..1, and how much of the pin is there 0..1. |
| `pitch` | `number` | Spacing along a row and between rows, box px. |
| `row` | `number` |  |
| `rows` | `number` |  |
| `wave` | `Float32Array` | Per pin: when the rising wave reaches it, 0..1 of the wave. |
| `x` | `number` | Box px of the first pin. |
| `y` | `number` |  |

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