本文へ移動

Hoshi Stars星

肉眼で見える星の名前・色・距離、88星座の線と境界、メシエ天体、そしてそれらを描くための7種類の図法を使えます。

「星」(ほし) は、夜空に光って見えるものです。 名前について(英語)

目次

リファレンス · 天の川 (明るさの地図と、描くための帯)

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 milkyWayBrightness measures them. Default [0.2, 0.42, 0.68]: the glow, the band and the core. Each must be a number above 0 and below 1.

options (省略可)MilkyWayBandsOptions

step: degrees of longitude between points along a strip (a multiple of 0.5, default 1).

戻り値

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 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68 10

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/hoshi-stars 0.7.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。