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.
import { backgroundOf } from '@dioramajs/text/emboss'.
function backgroundOf(element: Element): string | undefinedParameters
| Name | Type | Description |
|---|---|---|
element | Element |
Defined in packages/text/src/emboss.ts.