本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 暗い星 (UCAC4の約300万個、12等まで。見ている空の部分のタイルだけを読み込みます)

faintSky関数

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

Make the loader for the faint stars. It is starSky with the package's own UCAC4 source (ucac4Source); to add a source of your own, or to see the credits of what is drawn, use starSky from @johnmorrisdotca/hoshi-stars/door.

インポート

import { faintSky } from "@johnmorrisdotca/hoshi-stars/faint";

定義

function faintSky(options?: FaintSkyOptions): FaintSky

引数

名前型説明
options (省略可)FaintSkyOptions

Where the tiles are, and the fetch to use.

戻り値

FaintSky

The loader.

例

import { faintSky } from "@johnmorrisdotca/hoshi-stars/faint";

const sky = faintSky({ baseUrl: "https://cdn.jsdelivr.net/gh/johnmorrisdotca/hoshi-stars/faint-tiles/" });
await sky.load({ rightAscension: 299, declination: 40, radius: 2 }, 12);

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

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