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

reach function

Distance from (`x`, `y`) to the farthest corner of a `width` × `height` box, px.

View as Markdown
import { reach } from '@dioramajs/media/frost'
function reach(x: number, y: number, width: number, height: number): number

Parameters

NameTypeDescription
xnumber
ynumber
widthnumber
heightnumber

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