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 · Names on the brightest stars and the constellation figures as faint lines, for a sky you draw yourself: a count or a magnitude, the figure under the pointer at full strength, a body that covers part of the sky, and a look set by settings alone

CoverMasktype

How a page says that a spot of its screen is covered by a body in front of the sky (the Earth, a planet, a panel): true where a star would not be seen.

Import it

import type { CoverMask } from "@johnmorrisdotca/hoshi-stars/sky-labels";

Definition

type CoverMask = (x: number, y: number) => boolean;

Examples

import type { CoverMask } from "@johnmorrisdotca/hoshi-stars/sky-labels";

const belowTheHorizon: CoverMask = (_x, y) => y > 500;
console.log(belowTheHorizon(10, 600));
true

What it prints (run when this page was built)

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