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

radiusInfunction

A body's radius in Earth radii: the real one, or one large enough to see in a compressed view.

Import it

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

Definition

function radiusIn(id: "sun" | "earth" | "moon" | SpacePlanet, mode: ScaleMode): number

Parameters

NameTypeDescription
id"sun" | "mercury" | "venus" | "earth" | "mars" | "jupiter" | "saturn" | "uranus" | "neptune" | "pluto" | "moon"

The Sun, the Earth, the Moon or a planet.

modeScaleMode

The scale.

Returns

number

The radius to draw it at, in Earth radii.

Examples

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

console.log(radiusIn("moon", "true").toFixed(3), radiusIn("moon", "compressed"));
0.272 0.9

What it prints (run when this page was built)

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