# dotGrid

function in `@dioramajs/data/map`

```ts
import { dotGrid } from '@dioramajs/data/map'
```

A grid of dots over the view: land, sea inside the world's outline, nothing outside it.

```ts
function dotGrid(
  view: View,
  columns: number,
  cells: Uint8Array,
): { centers: Float32Array; land: Float32Array; spacing: number }
```

| Parameter | Type | Description |
| --- | --- | --- |
| `view` | `View` |  |
| `columns` | `number` |  |
| `cells` | `Uint8Array` |  |

Defined in [packages/data/src/map.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/data/src/map.ts#L235).
