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

starts function

Where each particle starts in 3D, as an offset from its place: in a cloud around and behind the text, rising from below, out of a point deep behind its middle, or from both sides.

View as Markdown
import { starts } from '@dioramajs/text/assemble'

. Paths bend by a smooth field, so particles that land close stream alike. depth is the camera distance.

function starts(
  ink: Ink,
  from: From,
  em: number,
  depth: number,
  seed: number,
): Starts

Parameters

NameTypeDescription
inkInk
fromFrom
emnumber
depthnumber
seednumber

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