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

wallTone function

Lightness 0..1 of the wall behind the element: the first background color at least half opaque on it or an ancestor, white (the page's default) without one.

View as Markdown
import { wallTone } from '@dioramajs/text/neon'

.

function wallTone(element: Element): number

Parameters

NameTypeDescription
elementElement

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