Reference · The Milky Way: a brightness map and soft bands to draw
MilkyWayBandsOptionstype
Where to cut the bands, and how finely.
Import it
import type { MilkyWayBandsOptions } from "@johnmorrisdotca/hoshi-stars/milky-way";
Definition
interface MilkyWayBandsOptions {
step?: number;
}
Members
| Name | Type | Description |
|---|---|---|
step (optional) | number | undefined | Degrees of galactic longitude between points along a strip; a multiple of the grid's 0.5, default 1. |
Examples
import { milkyWayBands, type MilkyWayBandsOptions } from "@johnmorrisdotca/hoshi-stars/milky-way";
const options: MilkyWayBandsOptions = { step: 2 };
console.log(milkyWayBands([0.3, 0.6], options).length);2What it prints (run when this page was built)