本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 全天を1枚の横長 (2対1) の地図に (銀河座標か赤道座標、モルワイデ・ハンマー・正距円筒図法。継ぎ目で線をきれいに切る)

AllSkyOptions型

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

How to lay the whole sky out.

インポート

import type { AllSkyOptions } from "@johnmorrisdotca/hoshi-stars/all-sky";

定義

interface AllSkyOptions {
    width: number;
    frame?: AllSkyFrame;
    projection?: AllSkyProjection;
    centre?: number;
    mirror?: boolean;
}

メンバー

名前型説明
widthnumber

The picture's width in your units; it is half as tall.

frame (省略可)"galactic" | "equatorial" | undefined

The orientation; galactic by default.

projection (省略可)"equirectangular" | "mollweide" | "hammer" | undefined

The projection; mollweide by default.

centre (省略可)number | undefined

The longitude of the frame (galactic longitude, or right ascension), in degrees, that lands in the middle; 0 for galactic and 180 (12 hours) for equatorial by default. The seam is half a turn from it.

mirror (省略可)boolean | undefined

True for the map convention, longitude growing to the right. Default false: the sky seen looking up, longitude (east) growing to the LEFT, as the rest of the package draws it.

例

import type { AllSkyOptions } from "@johnmorrisdotca/hoshi-stars/all-sky";

const options: AllSkyOptions = { width: 1000, frame: "equatorial", projection: "hammer" };
console.log(options.width / 2, "tall");
500 tall

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

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

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