リファレンス
数値から描いた星の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. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。