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

createPainterfunction

Make a painter that takes its pictures from the given folders (jsDelivr's copy of this version by default).

Import it

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

Definition

function createPainter(options?: PainterOptions): WakuseiPainter

Parameters

NameTypeDescription
options (optional)PainterOptions

Where the pictures are.

Returns

WakuseiPainter

The painter.

Examples

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

const painter = createPainter();
console.log(painter.moons("Mars", Date.UTC(2026, 10, 2)).map((m) => m.name));

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