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 same, with suncalc 1's conventions (radians, azimuth from south)

addTimefunction

Add a time to the ones getTimes gives: when the Sun reaches an altitude in degrees.

Import it

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

Definition

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

Parameters

NameTypeDescription
anglenumber

The altitude in degrees.

riseNamestring

The name when the Sun goes up through it.

setNamestring

The name when the Sun goes down through it.

Examples

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

addTime(-4, "morningBlue", "eveningBlue");
console.log(times.some((row) => row[1] === "morningBlue"));
true

What it prints (run when this page was built)

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