Field interface
The pins over a box and how far each stands out at rest.
import type { Field } from '@dioramajs/text/pins'interface FieldMembers
| Name | Type | Description |
|---|---|---|
readonly at | Float32Array | Per pin: x, y in box px (y down) and the UV of its texel in the height texture. |
readonly cell | Uint32Array | Per pin: its texel in the height texture, row by row over |
readonly cols | number | |
readonly count | number | |
readonly hex | boolean | Odd rows shifted by half a pitch. |
readonly info | Float32Array | Per pin: relief at rest 0..1, a random 0..1, and how much of the pin is there 0..1. |
readonly pitch | number | Spacing along a row and between rows, box px. |
readonly row | number | |
readonly rows | number | |
readonly wave | Float32Array | Per pin: when the rising wave reaches it, 0..1 of the wave. |
readonly x | number | Box px of the first pin. |
readonly y | number |
Defined in packages/text/src/pins.ts.