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

Field interface

The pins over a box and how far each stands out at rest.

View as Markdown
import type { Field } from '@dioramajs/text/pins'
interface Field

Members

NameTypeDescription
readonly atFloat32Array

Per pin: x, y in box px (y down) and the UV of its texel in the height texture.

readonly cellUint32Array

Per pin: its texel in the height texture, row by row over cols by rows.

readonly colsnumber
readonly countnumber
readonly hexboolean

Odd rows shifted by half a pitch.

readonly infoFloat32Array

Per pin: relief at rest 0..1, a random 0..1, and how much of the pin is there 0..1.

readonly pitchnumber

Spacing along a row and between rows, box px.

readonly rownumber
readonly rowsnumber
readonly waveFloat32Array

Per pin: when the rising wave reaches it, 0..1 of the wave.

readonly xnumber

Box px of the first pin.

readonly ynumber

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