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

RingStriptype

The strip of a body's rings: RGBA bytes width pixels across, and the inner and outer radii in body radii.

Import it

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

Definition

interface RingStrip {
    data: Uint8Array;
    width: number;
    inner: number;
    outer: number;
}

Members

NameTypeDescription
dataUint8Array<ArrayBufferLike>
widthnumber
innernumber
outernumber

Examples

import { BODIES, ringStrip, type RingStrip } from "@johnmorrisdotca/wakusei-planets";

const strip: RingStrip | null = ringStrip(BODIES.saturn, 64);
console.log(strip?.data.length);
256

What it prints (run when this page was built)

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