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 · How a body is drawn with three.js

detailOffunction

The strength and stretch of a body's generic fine detail: its own detail, else the table's for a body that is smooth (the gas giants, Venus, Titan) or the rocky default.

Import it

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

Definition

function detailOf(look: BodyLook): { amount: number; stretch: number; }

Parameters

NameTypeDescription
lookBodyLook

The body's look.

Returns

{ amount: number; stretch: number; }

How strong it is (0 to 1) and how much it is stretched along the lines of latitude.

Examples

import { detailOf, lookOf } from "@johnmorrisdotca/wakusei-planets/look";

const look = lookOf("mars");
console.log(look === undefined ? "no look" : detailOf(look).amount);
no look

What it prints (run when this page was built)

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