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

pattern function

Cuts the text into horizontal slabs for one step of the pattern and writes their layers back to front: the hologram, the red and cyan layers, the sides of an extruded block, then the text itself on top.

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

. Slabs left in place merge, and at level 0 it is the flat text in one layer.

function pattern(step: Step, out: Slabs): void

Parameters

NameTypeDescription
stepStep
outSlabs

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