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

@dioramajs/globe/globe

Exports of @dioramajs/globe/globe.

View as Markdown
On this page
import { cellOf, default, HEIGHT } from '@dioramajs/globe/globe'

Functions

cellOfThe mask cell of a latitude and longitude in degrees.
landDotsUnit vectors of the land dots: a Fibonacci spiral of `count` points over the sphere, kept where the mask is land. The same on every load.
unpackDecodes the land mask of src/land.ts: 1 for land, `WIDTH` cells a row.

Constants

defaultAn interactive globe of land dots or a land mask, with markers for the element's points and arcs between them that draw once or flow. Fires `dio:marker` on the element when a marker lights up or goes dark.
HEIGHTRows of the land mask: 0.5° each, from the north.
WIDTHColumns of the land mask: 0.5° each, from 180° W.