Reference · The Milky Way: a brightness map and soft bands to draw
MilkyWayBandtype
Everywhere the Milky Way is brighter than one level.
Import it
import type { MilkyWayBand } from "@johnmorrisdotca/hoshi-stars/milky-way";
Definition
interface MilkyWayBand {
level: number;
strips: MilkyWayStrip[];
}
Members
| Name | Type | Description |
|---|---|---|
level | number | The level, 0 (dark sky) to 1 (the brightest part of the core), as |
strips | MilkyWayStrip[] | The ribbons where the brightness is above the level. |
Examples
import { milkyWayBands, type MilkyWayBand } from "@johnmorrisdotca/hoshi-stars/milky-way";
const band: MilkyWayBand = milkyWayBands([0.5])[0]!;
console.log(band.level, band.strips.length);0.5 10What it prints (run when this page was built)