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

halves function

Tangents of half the view across and up a box `width` by `height` for a vertical field of view `fov` in degrees.

View as Markdown
import { halves } from '@dioramajs/media/panorama'

. A portrait box sees a little wider, so a phone is not looking through a slit; the width never takes more than 110°.

function halves(fov: number, width: number, height: number): [number, number]

Parameters

NameTypeDescription
fovnumber
widthnumber
heightnumber

Defined in packages/media/src/panorama.ts.