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 · A picture of each of the 88 constellations, in light and dark

FigureThumbnailInputtype

What to draw for a figure of a sky culture: its name for the picture's <title>, the stars it joins and the lines between them.

Import it

import type { FigureThumbnailInput } from "@johnmorrisdotca/hoshi-stars/thumbnails";

Definition

interface FigureThumbnailInput {
    title: string;
    stars: ReadonlyArray<Star>;
    segments: ReadonlyArray<readonly [
        Star,
        Star
    ]>;
}

Members

NameTypeDescription
titlestring

The name for the picture's <title> and aria-label.

starsreadonly Star[]

The stars of the figure, drawn inside a soft outline round them; one star is also ringed.

segmentsreadonly (readonly [Star, Star])[]

The lines of the figure, each a pair of its stars.

Examples

import { figureOf } from "@johnmorrisdotca/hoshi-stars/lines";
import { japanese } from "@johnmorrisdotca/hoshi-stars/cultures/japanese";
import { type FigureThumbnailInput } from "@johnmorrisdotca/hoshi-stars/thumbnails";

const subaru = figureOf("昴", japanese);
const input: FigureThumbnailInput = { title: "昴", stars: subaru.stars, segments: subaru.segments };
console.log(input.stars.length);
6

What it prints (run when this page was built)

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