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

gap function

Distance between two convex outlines on screen, px; negative when they overlap.

View as Markdown
import { gap } from '@dioramajs/text/tunnel'
function gap(a: readonly Point[], b: readonly Point[]): number

Parameters

NameTypeDescription
areadonly Point[]
breadonly Point[]

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