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

Slabs interface

Instance attributes, one row per layer of a slab, in draw order.

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

Members

NameTypeDescription
readonly bandFloat32Array

Top and bottom of the slab in box px, the layer's sideways offset in px, its static.

countnumber

Layers written.

readonly lookFloat32Array

Share of the text's own color, opacity, shade, scanlines.

readonly moveFloat32Array

Move of the slab in px, x, y (down) and towards the viewer; the layer's depth behind it.

readonly tintFloat32Array

Color of a color layer or of the hologram, sRGB.

readonly turnFloat32Array

Turn of the slab around x, y and z in radians.

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