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

grounds function

The page color under the element's text, and behind the element.

View as Markdown
import { grounds } from '@dioramajs/text/lens'
function grounds(
  element: Element,
): { behind: string; dark: boolean; own: string }

Parameters

NameTypeDescription
elementElement

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