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 · The <wakusei-space> element: the Earth, Moon, Sun and planets in their places

Ridingtype

What the camera is riding along with now: the target, the body it goes round, how (from or follow), where it looks, and the distance kept for a point.

Import it

import type { Riding } from "@johnmorrisdotca/wakusei-planets/space/element";

Definition

type Riding = RideState;

Members

NameTypeDescription
targetRideTarget
around"sun" | "mercury" | "venus" | "earth" | "mars" | "jupiter" | "saturn" | "uranus" | "neptune" | "pluto" | "moon"

The body the target goes round: the Earth for a body of the view or a point (unless said), the planet for a moon.

view"from" | "follow"

from: the camera is at the target, looking at the body it goes round. follow: the camera keeps a distance from it, looking at it.

lookRideLook
distanceKmnumber

For follow a point: how far the camera keeps, in kilometres.

Examples

import type { Riding } from "@johnmorrisdotca/wakusei-planets/space/element";

const describe = (ride: Riding | null): string => (ride ? `${ride.view} ${typeof ride.target === "string" ? ride.target : "a point"}` : "not riding");
console.log(typeof describe);

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