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

Stars: names, positions, distance and colour

import { … } from "@johnmorrisdotca/hoshi-stars";

Exports

NameKindWhat it is
blackBodyColourfunctionThe colour of a black body at a temperature, as a #rrggbb string, for drawing a star.
StartypeOne star, as the Yale Bright Star Catalogue gives it.
starByHrfunctionA star by its Bright Star Catalogue number.
starByNamefunctionA star by its common name (Sirius), its name in katakana (シリウス) or its designation (α CMa, 9 CMa), ignoring case.
starColourfunctionThe colour to draw a star: from its B-V index, or a plain white where the catalogue has none.
starDistanceLightYearsfunctionA star's distance from its parallax, in light-years.
starPositionfunctionWhere a star is at a moment: its J2000 position carried forward (or back) by its proper motion in a straight line.
starsfunctionThe stars to a magnitude, brightest first.
starTemperatureKfunctionThe surface temperature a colour index implies, in kelvin, by Ballesteros's relation between B-V and a black body.
WhentypeA moment: a Date or a number of milliseconds since 1970 (UTC, as JavaScript counts).

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