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)

blackBodyColourfunction

The colour of a black body at a temperature, as a #rrggbb string, for drawing a star. It is the colour a camera would show, not a measurement, and it uses an approximation of the black-body locus (good to a few percent between 1,000 and 40,000 K).

Import it

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

Definition

function blackBodyColour(kelvin: number): string

Parameters

NameTypeDescription
kelvinnumber

Temperature in kelvin.

Returns

string

A colour like #a4bdff.

Examples

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

console.log(blackBodyColour(10000), blackBodyColour(3500));
#cadaff #ffc18d

What it prints (run when this page was built)

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