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

ThumbnailOptionstype

How to draw a picture.

Import it

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

Definition

interface ThumbnailOptions {
    theme?: ThumbnailTheme;
    size?: number;
    neighbours?: boolean;
}

Members

NameTypeDescription
theme (optional)ThumbnailTheme | undefined

dark (the default) or light.

size (optional)number | undefined

The width and height in pixels. Left out, the picture has only a viewBox and takes the size of its box.

neighbours (optional)boolean | undefined

False to leave out the neighbours' boundaries and stars (default true).

Examples

import { constellationThumbnail, type ThumbnailOptions } from "@johnmorrisdotca/hoshi-stars/thumbnails";

const options: ThumbnailOptions = { theme: "light", size: 160, neighbours: false };
console.log(constellationThumbnail("Ori", options).includes('width="160"'));
true

What it prints (run when this page was built)

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