dotGrid function
A grid of dots over the view: land, sea inside the world's outline, nothing outside it.
import { dotGrid } from '@dioramajs/data/map'function dotGrid(
view: View,
columns: number,
cells: Uint8Array,
): { centers: Float32Array; land: Float32Array; spacing: number }Parameters
| Name | Type | Description |
|---|---|---|
view | View | |
columns | number | |
cells | Uint8Array |
Defined in packages/data/src/map.ts.