Skip to the content

Wakusei Planets惑星

The Sun, the planets and their moons as a clean line drawing, a shaded realistic drawing or a painted surface map, with real sizes, tilt and rotation, and the moons where they are at any date and time.

Wakusei is the Japanese word 惑星 for a planet. About the name

Contents

Reference · The Sun and Moon from a place: position, sunrise and sunset, Moon rise, set and phase, with suncalc 2's names and a better engine

timesconstant

The altitudes of the Sun's times in degrees: the morning name when it rises through the angle, the evening name when it sets through it. The ones at the horizon move with the observer's height.

Import it

import { times } from "@johnmorrisdotca/wakusei-planets/suncalc";

Definition

const times: [number, string, string][] = [
    [-0.833, "sunrise", "sunset"],
    [-0.3, "sunriseEnd", "sunsetStart"],
    [-6, "dawn", "dusk"],
    [-12, "nauticalDawn", "nauticalDusk"],
    [-18, "nightEnd", "night"],
    [6, "goldenHourEnd", "goldenHour"],
]

Examples

import { times } from "@johnmorrisdotca/wakusei-planets/suncalc";

console.log(times.map((row) => row[1]).join(", "));
sunrise, sunriseEnd, dawn, nauticalDawn, nightEnd, goldenHourEnd

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/wakusei-planets 0.24.0.