Reference · The Milky Way: a brightness map and soft bands to draw
MilkyWayDetailOptionstype
How sharply to read the grid between its points.
Import it
import type { MilkyWayDetailOptions } from "@johnmorrisdotca/hoshi-stars/milky-way";
Definition
interface MilkyWayDetailOptions {
detail?: number;
}
Members
| Name | Type | Description |
|---|---|---|
detail (optional) | number | undefined | 0 reads the grid in straight lines between its points (the default for |
Examples
import { milkyWayBrightness, type MilkyWayDetailOptions } from "@johnmorrisdotca/hoshi-stars/milky-way";
const options: MilkyWayDetailOptions = { detail: 1 };
console.log(milkyWayBrightness({ rightAscension: 190, declination: -63 }, options)); // the Coalsack, darker than with detail 00.18262316275927565What it prints (run when this page was built)