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

paint function

The order to paint the cuts in, back to front, for an eye at `eye` (element frame).

View as Markdown
import { paint } from '@dioramajs/text/unfold'

A cut's children fold to its front: they go after it when the eye is on that side, before it otherwise. Siblings go by their height over the parent's plane, then the farthest from the eye first.

function paint(sheet: Sheet, placed: readonly Placed[], eye: Vec3): number[]

Parameters

NameTypeDescription
sheetSheet
placedreadonly Placed[]
eyeVec3

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