本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 天の川 (明るさの地図と、描くための帯)

MilkyWayDetailOptions型

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

How sharply to read the grid between its points.

インポート

import type { MilkyWayDetailOptions } from "@johnmorrisdotca/hoshi-stars/milky-way";

定義

interface MilkyWayDetailOptions {
    detail?: number;
}

メンバー

名前型説明
detail (省略可)number | undefined

0 reads the grid in straight lines between its points (the default for milkyWayBrightness). Above 0 the grid is read along smooth curves and each value is pushed away from the mean of the degree or two round it, by this much: the dust lanes come out narrower and darker and the star clouds beside them brighter, the way the eye sees them. It sharpens what the grid holds and adds no detail of its own (no noise, nothing made up). From 0 to 2; 1 is the default for milkyWayTexture.

例

import { milkyWayBrightness, type MilkyWayDetailOptions } from "@johnmorrisdotca/hoshi-stars/milky-way";

const options: MilkyWayDetailOptions = { detail: 1 };
console.log(milkyWayBrightness({ rightAscension: 190, declination: -63 }, options)); // the Coalsack, darker than with detail 0
0.18262316275927565

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

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

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