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

frameAtfunction

The state of the sky at ms: the Sun, the Moon and eight planets as seen from the Earth's centre, worked out by this package's own models in a fraction of a millisecond.

Import it

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

Definition

function frameAt(ms: number): SpaceFrame

Parameters

NameTypeDescription
msnumber

A moment, in milliseconds since the Unix epoch.

Returns

SpaceFrame

The Sun, the Moon and the planets in astronomical units from the Earth's centre.

Examples

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

const frame = frameAt(Date.UTC(2026, 10, 2, 12));
console.log(frame.moon.map((n) => n.toFixed(4)));
[ '-0.0019', '0.0007', '-0.0015' ]

What it prints (run when this page was built)

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