Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

Reference · The Milky Way: a brightness map and soft bands to draw

MilkyWayRampStoptype

One stop of a colour ramp: at a brightness level, a colour and an opacity. Between stops the colour runs in a straight line.

Import it

import type { MilkyWayRampStop } from "@johnmorrisdotca/hoshi-stars/milky-way";

Definition

interface MilkyWayRampStop {
    level: number;
    red: number;
    green: number;
    blue: number;
    alpha: number;
}

Members

NameTypeDescription
levelnumber

The brightness, 0 to 1, as milkyWayBrightness gives it.

rednumber

Red, green and blue, 0 to 255.

greennumber
bluenumber
alphanumber

Opacity, 0 (clear) to 1.

Examples

import type { MilkyWayRampStop } from "@johnmorrisdotca/hoshi-stars/milky-way";

const core: MilkyWayRampStop = { level: 1, red: 255, green: 243, blue: 216, alpha: 0.88 };
console.log(core.level);
1

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.47.0.