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

rest function

The light at rest, from the box center in px (y down) and its height: `angle` as a CSS angle (0 above, 90 right) at about the size of the box away and above it, moved up and down with the box's place in the viewport, as a lamp fixed in the room would be.

View as Markdown
import { rest } from '@dioramajs/text/emboss'

.

function rest(
  angle: number,
  width: number,
  height: number,
  middle: number,
  viewport: number,
): [number, number, number]

Parameters

NameTypeDescription
anglenumber
widthnumber
heightnumber
middlenumber
viewportnumber

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