MilkyWayBand型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Everywhere the Milky Way is brighter than one level.
インポート
import type { MilkyWayBand } from "@johnmorrisdotca/hoshi-stars/milky-way";
定義
interface MilkyWayBand {
level: number;
strips: MilkyWayStrip[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
level | number | The level, 0 (dark sky) to 1 (the brightest part of the core), as |
strips | MilkyWayStrip[] | The ribbons where the brightness is above the level. |
例
import { milkyWayBands, type MilkyWayBand } from "@johnmorrisdotca/hoshi-stars/milky-way";
const band: MilkyWayBand = milkyWayBands([0.5])[0]!;
console.log(band.level, band.strips.length);0.5 10出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。