リファレンス · 今夜見える星 (場所と時刻から、地平線の上にあり、太陽の光・空の明るさ・大気の減光のあとでも見える星を、薄明の種類、高度と方位、見やすさつきで)
Twilight型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How dark the sky is by the Sun's altitude: "day" (the Sun's upper edge up, -0.833 degrees or higher), "civil" twilight (down to -6), "nautical" (down to -12), "astronomical" (down to -18) and "night".
インポート
import type { Twilight } from "@johnmorrisdotca/hoshi-stars/tonight";
定義
type Twilight = "day" | "civil" | "nautical" | "astronomical" | "night";
例
import type { Twilight } from "@johnmorrisdotca/hoshi-stars/tonight";
const now: Twilight = "astronomical";
console.log(now);astronomical出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。