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 · Facts, line drawings and positions

lineupBodiesfunction

What the line-up draws for some choices, smallest first: the stars of a set (or the ids of your own list) and, with planets, the Earth and Jupiter. The radius of a planet is its equatorial radius from the package's facts. An id that is not in the table throws a RangeError.

Import it

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

Definition

function lineupBodies(options?: { set?: LineupSet | readonly string[]; planets?: boolean; }): LineupBody[]

Parameters

NameTypeDescription
options (optional){ set?: LineupSet | readonly string[]; planets?: boolean; }

set (all by default, or a list of ids from LINEUP_STARS) and planets (add the Earth and Jupiter).

Returns

LineupBody[]

The bodies, ordered by radius.

Examples

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

console.log(lineupBodies({ set: "bright", planets: true }).map((body) => body.id).join(", "));
earth, jupiter, sun, sirius-a, vega, arcturus, aldebaran, rigel, antares, betelgeuse

What it prints (run when this page was built)

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