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

Optics interface

The glass: a biconvex lens of aperture `a` with both faces of sag `sag`, edge `edge` thick.

View as Markdown
import type { Optics } from '@dioramajs/text/lens'
interface Optics

Members

NameTypeDescription
readonly anumber
readonly edgenumber

Half the thickness of the edge.

readonly heightnumber

Height of the lens's middle over the page.

readonly rnumber

Radius of both faces.

readonly sagnumber
readonly zoomnumber

Magnification the lens gives at its centre.

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