Slabs interface
Instance attributes, one row per layer of a slab, in draw order.
import type { Slabs } from '@dioramajs/text/text-glitch'interface SlabsMembers
| Name | Type | Description |
|---|---|---|
readonly band | Float32Array | Top and bottom of the slab in box px, the layer's sideways offset in px, its static. |
count | number | Layers written. |
readonly look | Float32Array | Share of the text's own color, opacity, shade, scanlines. |
readonly move | Float32Array | Move of the slab in px, x, y (down) and towards the viewer; the layer's depth behind it. |
readonly tint | Float32Array | Color of a color layer or of the hologram, sRGB. |
readonly turn | Float32Array | Turn of the slab around x, y and z in radians. |
Defined in packages/text/src/text-glitch.ts.