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

discCoverfunction

A mask for a round body, such as the Earth seen from space: every spot within radius pixels of its centre is covered.

Import it

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

Definition

function discCover(x: number, y: number, radius: number): CoverMask

Parameters

NameTypeDescription
xnumber

The centre's x in pixels.

ynumber

The centre's y in pixels.

radiusnumber

The radius in pixels.

Returns

CoverMask

A mask for StarNames.update.

Examples

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

const earth = discCover(400, 700, 300);
console.log(earth(400, 500), earth(400, 300));
true false

What it prints (run when this page was built)

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