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

magnification function

The magnification at the lens's centre at `height` over the page.

View as Markdown
import { magnification } from '@dioramajs/text/lens'
function magnification(
  aperture: number,
  thickness: number,
  height: number,
  ior: number,
  distance: number,
): number

Parameters

NameTypeDescription
aperturenumber
thicknessnumber
heightnumber
iornumber
distancenumber

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