Look interface
How a style breaks the text.
import type { Look } from '@dioramajs/text/text-glitch'Distances are in em, so a heading and a label break alike.
interface LookMembers
| Name | Type | Description |
|---|---|---|
readonly density | number | Share of the slabs struck at full strength. |
readonly depth | number | Largest jump towards or away from the viewer, em. |
readonly extrude | number | Thickness of the block a struck slab becomes, em; 0 keeps it flat. |
readonly lean | number | Lean of the whole line around its horizontal axis, radians: vhs leans back. |
readonly noise | number | Static mixed into struck slabs. |
readonly rows | number | Slabs per |
readonly shift | number | Largest sideways jump of a struck slab, em. |
readonly split | number | Scale of the color split. |
readonly tilt | number | Turn of the whole line around its vertical axis, radians: the color layers part. |
readonly trail | number | Scanline copies trailing behind the text, the hologram of vhs. |
readonly turn | readonly [number, number] | Largest turn of a struck slab around its horizontal and vertical axes, radians. |
readonly warp | number | Tape warp: the line bends in depth and sideways, em. |
Defined in packages/text/src/text-glitch.ts.