milkyWayBands関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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). Each strip runs along
the galactic equator; a dust lane that splits the band ends the strips on either side of it, so the lane shows as a gap. The points are in right ascension and declination, ready for
project from @johnmorrisdotca/hoshi-stars/projection; a strip crossing a map's seam or the far side is the caller's to cut (compare the longitudes of neighbouring points).
インポート
import { milkyWayBands } from "@johnmorrisdotca/hoshi-stars/milky-way";
定義
function milkyWayBands(levels?: readonly number[], options?: MilkyWayBandsOptions): MilkyWayBand[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
levels (省略可) | readonly number[] | Levels from 0 to 1, as |
options (省略可) | MilkyWayBandsOptions |
|
戻り値
MilkyWayBand[]
One band per level, in the order given.
例
import { milkyWayBands } from "@johnmorrisdotca/hoshi-stars/milky-way";
import { project } from "@johnmorrisdotca/hoshi-stars/projection";
for (const band of milkyWayBands()) {
for (const strip of band.strips) {
const polygon = [...strip.upper, ...strip.lower.slice().reverse()].map((p) => project("hammer", p, { centre: { rightAscension: 0, declination: 0 } }));
console.log(band.level, polygon.length);
}
}0.2 4
0.2 4
0.2 4
0.2 2
0.2 4
0.2 2
0.2 4
0.2 6
0.2 4
0.2 4
0.2 6
0.2 4
0.2 6
0.2 4
0.2 2
0.2 4
0.2 4
0.2 4
0.2 4
0.2 4
0.2 18
0.2 2
0.2 4
0.2 2
0.2 4
0.2 54
0.2 4
0.2 10
0.2 36
0.2 4
0.2 4
0.2 4
0.2 2
0.2 4
0.2 4
0.2 20
0.2 4
0.2 4
0.2 20
0.2 2
0.2 4
0.2 2
0.2 4
0.2 16
0.2 4
0.2 4
0.2 8
0.2 16
0.2 6
0.2 4
0.2 4
0.2 6
0.2 4
0.2 4
0.2 4
0.2 4
0.2 2
0.2 4
0.2 4
0.2 2
0.2 4
0.2 2
0.2 4
0.2 2
0.2 4
0.2 10
0.2 4
0.2 4
0.2 4
0.2 2
0.2 4
0.2 4
0.2 4
0.2 10
0.2 4
0.2 4
0.2 6
0.2 4
0.2 4
0.2 2
0.2 4
0.2 2
0.2 4
0.2 6
0.2 2
0.2 4
0.2 4
0.2 2
0.2 4
0.2 2
0.2 4
0.2 4
0.2 4
0.2 4
0.2 6
0.2 4
0.2 6
0.2 4
0.2 6
0.2 4
0.2 18
0.2 4
0.2 4
0.2 2
0.2 4
0.2 4
0.2 16
0.2 4
0.2 4
0.2 4
0.2 4
0.2 14
0.2 4
0.2 6
0.2 40
0.2 8
0.2 16
0.2 6
0.2 24
0.2 12
0.2 8
0.2 26
0.2 4
0.2 4
0.2 4
0.2 12
0.2 24
0.2 6
0.2 38
0.2 8
0.2 6
0.2 4
0.2 4
0.2 2
0.2 4
0.2 2
0.2 4
0.2 6
0.2 10
0.2 4
0.2 6
0.2 4
0.2 4
0.2 6
0.2 4
0.2 4
0.2 4
0.2 4
0.2 4
0.2 4
0.2 4
0.2 4
0.2 4
0.2 4
0.2 4
0.2 6
0.2 18
0.2 40
0.2 4
0.2 4
0.2 2
0.2 4
0.2 2
0.2 4
0.2 6
0.2 4
0.2 22
0.2 4
0.2 4
0.2 54
0.2 4
0.2 24
0.2 4
0.2 4
0.2 2
0.2 4
0.2 2
0.2 4
0.2 14
0.2 4
0.2 8
0.2 4
0.2 4
0.2 2
0.2 4
0.2 2
0.2 4
0.2 6
0.42 4
0.42 4
0.42 4
0.42 4
0.42 2
0.42 4
0.42 2
0.42 4
0.42 26
0.42 22
0.42 6
0.42 12
0.42 14
0.42 8
0.42 12
0.42 28
0.42 6
0.42 22
0.68 14
0.68 8
0.68 10出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。