Dither Globe
A globe for your about page: land and a stippled sea lit from one side, city lights on the night side, turning west to east the way the Earth does. Home gets a radar ping and each place an arc with a pulse running along it; spin it by hand, or click a place to bring it round.
Needs: None. A 2D canvas and a 1-degree land map from Natural Earth (public domain, about 11 KB) built in.
Land from Natural Earth
Customize
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| home | { lat: number; lon: number; label?: string } | required | Where you're based: a ping marks it, and the globe starts turned to it. |
| places | { lat: number; lon: number; label?: string }[] | "[]" | Places you've worked, studied or shipped to: an arc runs to each from home. |
| tone | string | "#ff7a3d" | The ping, the arcs and the pulses along them. |
| land | string | "#7da35c" | The land's colour in daylight. |
| ocean | string | "#3a78b8" | The sea's colour in daylight, drawn as a lighter stipple than the land. |
| cell | number | 3 | Size of one dither pixel in px. |
| speed | number | 5 | Degrees a second the Earth turns, west to east. 0 holds it still. |
| lights | boolean | true | City lights on the night side. |
| labels | boolean | true | Names beside home and the places. |
| interactive | boolean | true | Drag to spin it like a desk globe; click a place to bring it round. |
| className | string | – | Class on the root, which fills its parent. |
| style | CSSProperties | – | Style on the root. Theme it through the --mlui-* variables. |