iceMap function
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.
import { iceMap } from '@dioramajs/text/water'.
function iceMap(
width: number,
height: number,
em: number,
seed?: number,
): Uint8ArrayParameters
| Name | Type | Description |
|---|---|---|
width | number | |
height | number | |
em | number | |
seed? | number | Default |
Defined in packages/text/src/water.ts.