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

portraitfunction

A pose from a tilt, a pitch, a phase and a spin: the body as a portrait, with the Sun a little above the left. The same arguments always give the same pose.

Import it

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

Definition

function portrait(id: BodyId, options?: PortraitOptions): Pose

Parameters

NameTypeDescription
idBodyId

The body's name.

options (optional)PortraitOptions

The pose's tilt, pitch, phase and spin.

Returns

Pose

The pose, as unit vectors in the viewer's frame.

Examples

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

const pose = portrait("mars", { phase: 90 });
console.log(pose.light[0] < -0.9);
true

What it prints (run when this page was built)

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