# field

function in `@dioramajs/text/pins`

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

Pins on a grid over a `width` by `height` box, a hex grid when `hex`. Each stands out by a
smooth step of the distance to the glyph edge, so the letters rise as plateaus whose edges ramp
over a pitch or so. With a `halo` only the pins that close to the glyphs are kept, fewer and
fewer toward its edge, so the field takes the shape of the word. The pitch widens until the
pins fit `max`. The wave reaches them left to right and a little top down.

```ts
function field(
  layout: Raster,
  width: number,
  height: number,
  options: FieldOptions,
): Field
```

| Parameter | Type | Description |
| --- | --- | --- |
| `layout` | `Raster` |  |
| `width` | `number` |  |
| `height` | `number` |  |
| `options` | `FieldOptions` |  |

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