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

PortraitLayouttype

What a layout works out for a scene: every body placed, and the camera that holds them (its centre and half-height, in the scene's units).

Import it

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

Definition

interface Resolved {
    placed: Placed[];
    camera: {
        x: number;
        y: number;
        h: number;
    };
}

Members

NameTypeDescription
placedPlaced[]
camera{ x: number; y: number; h: number; }

Examples

import { addBody, defaultPortrait, layoutPortrait, type PortraitLayout } from "@johnmorrisdotca/wakusei-planets";

const layout: PortraitLayout = layoutPortrait(addBody(defaultPortrait(), "mars"));
console.log(layout.camera.h);
1

What it prints (run when this page was built)

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