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

Step interface

What one step of the pattern needs to know.

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

Members

NameTypeDescription
readonly alphanumber

Opacity of the step, a flicker.

readonly emnumber
readonly framereadonly [number, number, number, number]
readonly grainyboolean

Static flashes on this step.

readonly idnumber

Pattern id: the same id draws the same slabs.

readonly levelnumber

Strength of the burst now, 0..1.

readonly linesnumber

Lines of text, the text's frame in box px and its largest font size.

readonly lookLook
readonly presencenumber

1 at rest; leaving a page the slabs fly at the viewer and drop out.

readonly seednumber
readonly slicesnumber
readonly splitnumber
readonly strengthnumber

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