本文へ移動

Hoshi Stars星

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

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

目次

リファレンス

星の名前・位置・距離・色

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).

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

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