seasonsSvgfunction
The seasons sheet: the Sun in the middle, the Earth's orbit as a ring, and the Earth at four points of it (March, June, September and December), each with its tilt, the dark half hatched, the season of the northern half named, and three facts. The axis leans the same way at all four, so in June the north leans toward the Sun and in December away from it.
Import it
import { seasonsSvg } from "@johnmorrisdotca/chikyu-earth/sheets";
Definition
function seasonsSvg(options: SheetOptions): string
Parameters
| Name | Type | Description |
|---|---|---|
options | SheetOptions | The room, the language and the type. |
Returns
string
The <svg> markup.
Examples
import { seasonsSvg } from "@johnmorrisdotca/chikyu-earth/sheets";
const svg = seasonsSvg({ widthMm: 184.6, heightMm: 180, lang: "en" });
console.log(svg.includes("Summer"), svg.includes("Winter"));true trueWhat it prints (run when this page was built)