Reference
The Milky Way: a brightness map and soft bands to draw
import { … } from "@johnmorrisdotca/hoshi-stars/milky-way";
Exports
| Name | Kind | What it is |
|---|---|---|
fromGalactic | function | The right ascension and declination (J2000) of a point given in galactic coordinates. |
GalacticPoint | type | A point in galactic coordinates, in degrees. |
MilkyWayBand | type | Everywhere the Milky Way is brighter than one level. |
milkyWayBands | function | The Milky Way cut at some brightness levels, as ribbons of sky points for drawing soft bands (a polygon per strip, filled with a low opacity so the levels build up). |
MilkyWayBandsOptions | type | Where to cut the bands, and how finely. |
milkyWayBrightness | function | How bright the Milky Way is toward a point, as a display value from 0 (dark sky) to 1 (the brightest part of the core, in Sagittarius). |
MilkyWayStrip | type | A ribbon of the Milky Way at one brightness level: two chains of sky points of the same length, the upper edge and the lower, each pair at the same galactic longitude. |
SkyPoint | type | A point on the celestial sphere, in degrees. |
toGalactic | function | The galactic longitude and latitude of a point of the sky (J2000, the IAU's galactic frame). |