Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

dotGrid function

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

View as Markdown
import { dotGrid } from '@dioramajs/data/map'
function dotGrid(
  view: View,
  columns: number,
  cells: Uint8Array,
): { centers: Float32Array; land: Float32Array; spacing: number }

Parameters

NameTypeDescription
viewView
columnsnumber
cellsUint8Array

Defined in packages/data/src/map.ts.