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 · Constellation lines

Figuretype

The stick figure of one constellation.

Import it

import type { Figure } from "@johnmorrisdotca/hoshi-stars/lines";

Definition

interface Figure {
    constellation: Constellation;
    stars: Star[];
    segments: Array<[
        Star,
        Star
    ]>;
}

Members

NameTypeDescription
constellationConstellation

The constellation the figure is drawn in.

starsStar[]

The stars the figure uses, each once, in the order the figure first reaches them.

segments[Star, Star][]

The lines to draw, each a pair of stars of the constellation, no pair twice. Empty where the figure is one star.

Examples

import { figureOf, type Figure } from "@johnmorrisdotca/hoshi-stars/lines";

const orion: Figure = figureOf("Ori");
console.log(orion.constellation.name, orion.stars.length, orion.segments.length);
Orion 8 8

What it prints (run when this page was built)

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