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

encodeScenefunction

The scene as one short piece of text that is safe in an address: fields joined by ~, each name:value, then one body_x_y_r_spin_tilt_pitch_turn for each body, back to front. An empty scene is an empty string.

Import it

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

Definition

function encodeScene(scene: Portrait): string

Parameters

NameTypeDescription
scenePortrait

The scene.

Returns

string

The text.

Examples

import { addBody, defaultPortrait, encodeScene } from "@johnmorrisdotca/wakusei-planets";

console.log(encodeScene(addBody(defaultPortrait(), "mars")));
mars____75___

What it prints (run when this page was built)

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