# backgroundOf

function in `@dioramajs/text/emboss`

```ts
import { backgroundOf } from '@dioramajs/text/emboss'
```

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.

```ts
function backgroundOf(element: Element): string | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `element` | `Element` |  |

Defined in [packages/text/src/emboss.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/emboss.ts#L97).
