field function
Pins on a grid over a `width` by `height` box, a hex grid when `hex`.
import { field } from '@dioramajs/text/pins'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.
function field(
layout: Raster,
width: number,
height: number,
options: FieldOptions,
): FieldParameters
| Name | Type | Description |
|---|---|---|
layout | Raster | |
width | number | |
height | number | |
options | FieldOptions |
Defined in packages/text/src/pins.ts.