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 · Bodies as objects for your own three.js scene

MoonSitetype

One moon of a planet at a time: where it is from the planet's centre and how big it is, both in radii of the planet, in the scene's axes.

Import it

import type { MoonSite } from "@johnmorrisdotca/wakusei-planets/painter";

Definition

interface MoonSite {
    name: string;
    offset: Vec3;
    radius: number;
}

Members

NameTypeDescription
namestring

The moon's name as make takes it, for example Io.

offsetVec3
radiusnumber

Examples

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

const io = painter.moons("Jupiter", Date.UTC(2026, 10, 2))[0];
console.log(io?.name, io?.radius.toFixed(3));

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