本文へ移動

Hoshi Stars星

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

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

目次

リファレンス

数値から描いた星のSVGの絵と、太陽との大きさくらべ

import { … } from "@johnmorrisdotca/hoshi-stars/portrait";

最小化と gzip 圧縮をしたサイズは 3.6 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
portraitLook関数The look a profile is drawn with, or undefined where it has no temperature to draw.
PortraitLook型The look a star is drawn with: "supergiant" has a few huge convection cells, "giant" a dozen large ones, "sun-like" fine granulation, "red-dwarf" finer cells in a deeper red, "hot" a smooth disc (hot stars carry their energy by radiation and show no granulation we know of), and "fast-rotator" a smooth, flattened and gravity-darkened disc, drawn only for the stars with a measured shape.
PortraitOptions型How a portrait or a comparison is drawn.
starComparison関数The star beside the Sun at one scale, as SVG text.
starPortrait関数A star drawn from its numbers as SVG text: a disc in the colour of its temperature, darker toward the edge by its limb-darkening coefficient, with a generic surface texture of the right kind of cells for its type, and, for Altair and Regulus, the flattened and gravity-darkened shape that interferometers measured, and for Vega the round face of a star seen over its pole.

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

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