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

Voxels interface

Cubes on a grid over the glyphs of a raster.

View as Markdown
import type { Voxels } from '@dioramajs/text/voxel'
interface Voxels

Members

NameTypeDescription
readonly atFloat32Array

Per cube: centre x, y in box px (y down), width in cells, and its place in the build wave, em.

readonly cellnumber

Grid step in box px: cell, or wider to fit the cap.

readonly colorFloat32Array

Per cube: linear r, g, b of the text there, and a random 0..1.

readonly countnumber
readonly emnumber

Median font size, px: the unit of the wave.

readonly extranumber

Widest wave of the build past a cube's own column, em: rows and lines.

readonly fromFloat32Array

Per cube: where it starts as a share of drop (box px axes, z toward the viewer), a random 0..1.

readonly leftnumber

Left edge of the cubes, box px: where the wave starts.

readonly nearFloat32Array

Per cube: share of the cells beside it that hold cubes, left, right, above, below.

readonly spinFloat32Array

Per cube: a unit axis it tumbles around and the angle it starts turned by, radians.

readonly wavenumber

The wave of the right-most column, em.

Defined in packages/text/src/voxel.ts.