本文へ移動

Wakusei Planets惑星

太陽・惑星・衛星を、線画、陰影つきの絵、表面の地図で描きます。実際の大きさ・傾き・自転つきで、任意の日時の衛星の位置も分かります。

「惑星」(わくせい) は、太陽のまわりを回る大きな星のことです。 名前について(英語)

目次

リファレンス · データ・線画・位置

StarPart型

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

One part of a star's picture and how well it is known, with a sentence for a page to show in English and Japanese.

インポート

import type { StarPart } from "@johnmorrisdotca/wakusei-planets";

定義

interface StarPart {
    part: "temperature" | "colour" | "size" | "edge" | "surface" | "spots" | "rotation" | "shape" | "poles" | "prominences" | "glow";
    status: StarStatus;
    note: {
        en: string;
        ja: string;
    };
}

メンバー

名前型説明
part"temperature" | "colour" | "size" | "edge" | "surface" | "spots" | "rotation" | "shape" | "poles" | "prominences" | "glow"
statusStarStatus
note{ en: string; ja: string; }

例

import { starLook, type StarPart } from "@johnmorrisdotca/wakusei-planets";

const parts: readonly StarPart[] = starLook({ temperatureK: 5772, radiusSun: 1 }).parts;
console.log(parts.map((part) => `${part.part}: ${part.status}`).join(", "));
temperature: measured, colour: derived, size: measured, edge: derived, surface: illustrative, spots: illustrative, rotation: illustrative, prominences: illustrative, glow: illustrative

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/wakusei-planets 0.25.0 のソースから作成しました。

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