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 sky seen from another star: positions, distances and brightness from there, with the Sun among the stars

SkyFromOptionstype

The options of skyFrom.

Import it

import type { SkyFromOptions } from "@johnmorrisdotca/hoshi-stars/sky-from";

Definition

interface SkyFromOptions {
    magnitude?: number;
    among?: readonly (Star | NearbyStar)[];
}

Members

NameTypeDescription
magnitude (optional)number | undefined

The faintest apparent magnitude from the viewpoint to include (a star of exactly that magnitude is in). All of them when left out.

among (optional)readonly (Star | NearbyStar)[] | undefined

Move this list instead of the 5,080 bright stars, for example [...stars(), ...nearbyStars()]. The Sun is added either way.

Examples

import { skyFrom, type SkyFromOptions } from "@johnmorrisdotca/hoshi-stars/sky-from";

const options: SkyFromOptions = { magnitude: 3 };
console.log(skyFrom("Vega", options).length);
149

What it prints (run when this page was built)

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