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

perspectiveOf function

Distance of the eye for the depth, px: a gentle perspective for a box of this size.

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

Parameters

NameTypeDescription
widthnumber
heightnumber

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