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 whole sky on one wide 2:1 map: galactic or equatorial, Mollweide, Hammer or plate carrée, with lines cut cleanly at the seam

AllSkyOptionstype

How to lay the whole sky out.

Import it

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

Definition

interface AllSkyOptions {
    width: number;
    frame?: AllSkyFrame;
    projection?: AllSkyProjection;
    centre?: number;
    mirror?: boolean;
}

Members

NameTypeDescription
widthnumber

The picture's width in your units; it is half as tall.

frame (optional)"galactic" | "equatorial" | undefined

The orientation; galactic by default.

projection (optional)"equirectangular" | "mollweide" | "hammer" | undefined

The projection; mollweide by default.

centre (optional)number | undefined

The longitude of the frame (galactic longitude, or right ascension), in degrees, that lands in the middle; 0 for galactic and 180 (12 hours) for equatorial by default. The seam is half a turn from it.

mirror (optional)boolean | undefined

True for the map convention, longitude growing to the right. Default false: the sky seen looking up, longitude (east) growing to the LEFT, as the rest of the package draws it.

Examples

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

const options: AllSkyOptions = { width: 1000, frame: "equatorial", projection: "hammer" };
console.log(options.width / 2, "tall");
500 tall

What it prints (run when this page was built)

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