# build

function in `@dioramajs/text/neon`

```ts
import { build } from '@dioramajs/text/neon'
```

Builds the sign from a raster of the text: a distance field of the glyphs with its direction
(the tubes' normals come from it), the shape of each piece's tube and its light blurred at three
radii into an atlas cell of its own, so every letter lights up alone. Yields to the browser
between steps.

```ts
function build(
  layout: Raster,
  style: Style,
  glowEm: number,
  ratio: number,
): Promise<Sign>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `layout` | `Raster` |  |
| `style` | `Style` |  |
| `glowEm` | `number` |  |
| `ratio` | `number` |  |

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