Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

Look interface

How a style breaks the text.

View as Markdown
import type { Look } from '@dioramajs/text/text-glitch'

Distances are in em, so a heading and a label break alike.

interface Look

Members

NameTypeDescription
readonly densitynumber

Share of the slabs struck at full strength.

readonly depthnumber

Largest jump towards or away from the viewer, em.

readonly extrudenumber

Thickness of the block a struck slab becomes, em; 0 keeps it flat.

readonly leannumber

Lean of the whole line around its horizontal axis, radians: vhs leans back.

readonly noisenumber

Static mixed into struck slabs.

readonly rowsnumber

Slabs per slices: big blocks for slice, many thin lines for vhs.

readonly shiftnumber

Largest sideways jump of a struck slab, em.

readonly splitnumber

Scale of the color split.

readonly tiltnumber

Turn of the whole line around its vertical axis, radians: the color layers part.

readonly trailnumber

Scanline copies trailing behind the text, the hologram of vhs.

readonly turnreadonly [number, number]

Largest turn of a struck slab around its horizontal and vertical axes, radians.

readonly warpnumber

Tape warp: the line bends in depth and sideways, em.

Defined in packages/text/src/text-glitch.ts.