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 5,080 stars you can see without a telescope: names, positions, proper motion, distance and colour (about 100 kB gzipped)

starColourfunction

The colour to draw a star: from its B-V index, or a plain white where the catalogue has none.

Import it

import { starColour } from "@johnmorrisdotca/wakusei-planets/stars";

Definition

function starColour(star: Star): string

Parameters

NameTypeDescription
starStar

A star.

Returns

string

A #rrggbb string.

Examples

import { starByName, starColour } from "@johnmorrisdotca/wakusei-planets/stars";

console.log(starColour(starByName("Betelgeuse")!), starColour(starByName("Rigel")!));
#ffbc83 #c6d8ff

What it prints (run when this page was built)

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