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

MilkyWayBandsOptionstype

Where to cut the bands, and how finely.

Import it

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

Definition

interface MilkyWayBandsOptions {
    step?: number;
}

Members

NameTypeDescription
step (optional)number | undefined

Degrees of galactic longitude between points along a strip; a multiple of the grid's 0.5, default 1.

Examples

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

const options: MilkyWayBandsOptions = { step: 2 };
console.log(milkyWayBands([0.3, 0.6], options).length);
2

What it prints (run when this page was built)

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