Reference · The realistic Earth's pure parts
gridLinesfunction
Makes the grid: meridians and parallels every 15 degrees (the parallels from 75 south to 75 north, the meridians to the poles), the equator brightest, the tropics and polar circles bright,
the prime meridian in a warm colour. Each line is cut into pieces of at most step degrees so it keeps to the sphere.
Import it
import { gridLines } from "@johnmorrisdotca/chikyu-earth/realistic";
Definition
function gridLines(step?: number): GridLines
Parameters
| Name | Type | Description |
|---|---|---|
step (optional) | number | The longest piece, in degrees (3 when left out). |
Returns
GridLines
The segments and their colours.
Examples
import { gridLines } from "@johnmorrisdotca/chikyu-earth/realistic";
const grid = gridLines();
console.log(grid.points / 2, grid.coarse / 2);3240 1800What it prints (run when this page was built)