# grid

function in `@dioramajs/text/water`

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

The grid of the simulation over a domain of `width` by `height` px: cells across, down and the cell size.

```ts
function grid(
  width: number,
  height: number,
  em: number,
  quality: QualityTier,
): { cell: number; cols: number; rows: number }
```

| Parameter | Type | Description |
| --- | --- | --- |
| `width` | `number` |  |
| `height` | `number` |  |
| `em` | `number` |  |
| `quality` | `QualityTier` |  |

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