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 · Where the Sun, Moon and planets are for a date, in two scales, with the camera maths

ScaleModetype

The scale the space view is drawn in: compressed squeezes the distances so the Moon, the Sun and Neptune fit one view, and true keeps the real ones.

Import it

import type { ScaleMode } from "@johnmorrisdotca/wakusei-planets/space";

Definition

type ScaleMode = "compressed" | "true";

Examples

import { placeMoon, type ScaleMode } from "@johnmorrisdotca/wakusei-planets/space";

const mode: ScaleMode = "compressed";
console.log(placeMoon(mode, [0.00257, 0, 0]));
[ 10, 0, 0 ]

What it prints (run when this page was built)

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