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

backgroundOf function

The material's base color: the element's own background color when it has one at least half opaque (the surface then covers the box), else undefined.

View as Markdown
import { backgroundOf } from '@dioramajs/text/emboss'

.

function backgroundOf(element: Element): string | undefined

Parameters

NameTypeDescription
elementElement

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