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

eyeOf function

Distance of the eye from the paper, px: a perspective like CSS `perspective` on the box.

View as Markdown
import { eyeOf } from '@dioramajs/text/unfold'
function eyeOf(width: number, height: number): number

Parameters

NameTypeDescription
widthnumber
heightnumber

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