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

allSkyOutlinefunction

The edge of the whole-sky picture as a closed run of points: the oval of Mollweide and Hammer, or the rectangle. Use it for the sky's background and as a clip path.

Import it

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

Definition

function allSkyOutline(options: AllSkyOptions, steps?: number): AllSkyPoint[]

Parameters

NameTypeDescription
optionsAllSkyOptions

The picture.

steps (optional)number

How many points to a side of the oval; 90 by default.

Returns

AllSkyPoint[]

Points going down the left edge, then up the right, the first repeated at the end.

Examples

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

const edge = allSkyOutline({ width: 1000, projection: "hammer" });
console.log(edge.length, edge[0]);
183 { x: 499.99999999999994, y: 0 }

What it prints (run when this page was built)

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