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

decodeScenefunction

The scene from its text. Anything it does not understand is left at its default and a body it does not know is dropped, so any text gives a scene.

Import it

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

Definition

function decodeScene(text: string): Portrait

Parameters

NameTypeDescription
textstring

Text from encodeScene, or anything.

Returns

Portrait

The scene.

Examples

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

console.log(decodeScene("look:painted~jupiter_0_0_0.3_0").items[0]?.body);
jupiter

What it prints (run when this page was built)

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