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

PortraitOptionstype

Options for a pose when no date is given. Angles are in degrees: tilt leans the pole on the page, pitch is how far the viewer looks over the pole, phase is the Sun–body–viewer angle and spin the longitude at the middle of the disc.

Import it

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

Definition

interface PortraitOptions {
    tilt?: number;
    pitch?: number;
    phase?: number;
    spin?: number;
}

Members

NameTypeDescription
tilt (optional)number | undefined

The axial tilt on the page: how far the north pole leans to the right of straight up. Default: the body's own tilt (turned to 120 or less).

pitch (optional)number | undefined

How far the viewer looks over the north pole: 0 sees the equator edge-on, 90 looks straight down at the pole. Default 12, or 22 for a body with rings.

phase (optional)number | undefined

The Sun–body–viewer angle: 0 is full, 90 half, 180 new. Default 38.

spin (optional)number | undefined

The longitude at the middle of the disc, degrees east. Default: the longitude of the body's best-known side.

Examples

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

const options: PortraitOptions = { tilt: 20, pitch: 15, phase: 60 };
console.log(portrait("jupiter", options).light.length);
3

What it prints (run when this page was built)

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