リファレンス
星の名前・位置・距離・色
import { … } from "@johnmorrisdotca/hoshi-stars";
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
blackBodyColour | 関数 | The colour of a black body at a temperature, as a #rrggbb string, for drawing a star. |
Star | 型 | One star, as the Yale Bright Star Catalogue gives it. |
starByHr | 関数 | A star by its Bright Star Catalogue number. |
starByName | 関数 | A star by its common name (Sirius), its name in katakana (シリウス) or its designation (α CMa, 9 CMa), ignoring case. |
starColour | 関数 | The colour to draw a star: from its B-V index, or a plain white where the catalogue has none. |
starDistanceLightYears | 関数 | A star's distance from its parallax, in light-years. |
starPosition | 関数 | Where a star is at a moment: its J2000 position carried forward (or back) by its proper motion in a straight line. |
stars | 関数 | The stars to a magnitude, brightest first. |
starTemperatureK | 関数 | The surface temperature a colour index implies, in kelvin, by Ballesteros's relation between B-V and a black body. |
When | 型 | A moment: a Date or a number of milliseconds since 1970 (UTC, as JavaScript counts). |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。