STAR_SUN定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The Sun as numbers: the first example of a star, and the size the others are drawn beside.
インポート
import { STAR_SUN } from "@johnmorrisdotca/wakusei-planets";
定義
const STAR_SUN: StarNumbers = { name: "Sun", temperatureK: SUN_K, radiusSun: 1, luminosityClass: "V", rotationDays: SUN_DAYS }
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
name (省略可) | string | undefined | What to call it: the picture's label. Default |
temperatureK | number | The effective surface temperature in kelvin, 1,000 to 200,000. It sets the colour. |
radiusSun | number | The radius in solar radii (the Sun is 1), above 0 and up to 5,000. It sets the size beside the Sun and the size of the rings drawn round the star. |
luminosityClass (省略可) | "0" | "Ia" | "Iab" | "Ib" | "II" | "III" | "IV" | "V" | "VI" | "D" | undefined | The luminosity class: it sets how coarse the surface is (fine cells on a dwarf, a few giant cells on a supergiant, none on a white dwarf). Default |
rotationDays (省略可) | number | undefined | Days for one turn at the equator, negative when it turns backwards. Left out, a slow turn is drawn and the picture says the rotation is not given. |
activity (省略可) | number | undefined | How spotted it is, 0 to 1. Left out it follows the temperature and the class: none on hot stars, many on cool dwarfs and red dwarfs, few and large on giants. The spots are illustrative either way. |
oblateness (省略可) | number | undefined | (equatorial radius - polar radius) / equatorial radius, 0 to 0.4. A fast spinner such as Altair is about 0.2. The star is drawn squashed, with the poles hotter than the equator (gravity darkening). Default 0. |
corona (省略可) | number | undefined | The strength of the soft glow round the star, 0 to 1. Default 0.8. |
estimated (省略可) | readonly StarNumberName[] | undefined | The numbers above that are estimates, not measurements (a radius worked out from brightness, say). The picture says so. |
例
import { STAR_SUN, starLook } from "@johnmorrisdotca/wakusei-planets";
console.log(STAR_SUN.temperatureK, starLook(STAR_SUN).turn.degreesPerSecond);5772 12出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。