# iceMap

function in `@dioramajs/text/water`

```ts
import { iceMap } from '@dioramajs/text/water'
```

The ice over a domain of `width` by `height` texels with `em` texels to the em, rows top
down, RGBA bytes: red the cracks, green the frost (thick at the edges, in patches and along
the cracks), blue the cracks blurred, for the light they bend.

```ts
function iceMap(
  width: number,
  height: number,
  em: number,
  seed?: number,
): Uint8Array
```

| Parameter | Type | Description |
| --- | --- | --- |
| `width` | `number` |  |
| `height` | `number` |  |
| `em` | `number` |  |
| `seed?` | `number` |  |

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