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

MilkyWayBandtype

Everywhere the Milky Way is brighter than one level.

Import it

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

Definition

interface MilkyWayBand {
    level: number;
    strips: MilkyWayStrip[];
}

Members

NameTypeDescription
levelnumber

The level, 0 (dark sky) to 1 (the brightest part of the core), as milkyWayBrightness gives it.

stripsMilkyWayStrip[]

The ribbons where the brightness is above the level.

Examples

import { milkyWayBands, type MilkyWayBand } from "@johnmorrisdotca/hoshi-stars/milky-way";

const band: MilkyWayBand = milkyWayBands([0.5])[0]!;
console.log(band.level, band.strips.length);
0.5 10

What it prints (run when this page was built)

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