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

addTimefunction

Add a time to the ones getTimes gives: when the Sun reaches an altitude in degrees, going up under the morning name and going down under the evening name.

Import it

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

Definition

function addTime(angle: number, riseName: string, setName: string): void

Parameters

NameTypeDescription
anglenumber

The altitude in degrees.

riseNamestring

The name of the time when the Sun goes up through it.

setNamestring

The name of the time when the Sun goes down through it.

Examples

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

addTime(-4, "morningBlueHourEnd", "blueHour");
console.log(times.some((row) => row[2] === "blueHour"));
true

What it prints (run when this page was built)

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