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

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

142.0 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
constellationThumbnailfunctionThe picture of one IAU constellation: its boundary (dashed, with a faint wash), its stick figure, its bright stars, and the neighbouring constellations' boundaries and stars faint round it.
figureThumbnailfunctionThe picture of a figure of a sky culture (a Chinese asterism, a traditional Japanese figure), drawn the way a constellation's is, so every sky makes one set: the same square, the same room round the figure, the neighbouring constellations' boundaries and stars faint behind it, the same line and star sizes.
FigureThumbnailInputtypeWhat 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.
paddedOutlinefunctionA soft outline round some stars: their convex hull grown by a margin with rounded corners, as a closed ring of positions.
THUMBNAIL_UNITSconstantThe side of the drawing in its own units; every picture is square.
ThumbnailInputtypeWhat to draw: the region to frame, the lines of the figure, and which stars belong to it.
ThumbnailOptionstypeHow to draw a picture.
thumbnailSvgfunctionOne picture, drawn from outlines, lines and stars you supply: the outlines are framed in a square with room round them, the stars that belong to the figure are drawn in full and every other star in the frame faint, with the faint boundaries of the neighbours behind them.
ThumbnailThemetypeThe two looks of a picture: dark is a night sky, light is ink on paper.

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