Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

Reference · Pictures of deep-sky objects and where each lies on the sky

pictureUrlfunction

The address of a picture's file: under the demo site by default, or under a folder of your own that holds a copy of the repository's pictures/ (with or without a closing slash).

Import it

import { pictureUrl } from "@johnmorrisdotca/hoshi-stars/deep-sky/pictures";

Definition

function pictureUrl(picture: DeepSkyPicture, base?: string): string

Parameters

NameTypeDescription
pictureDeepSkyPicture

A picture.

base (optional)string

The address the pictures/ folder's parent is served from (./, https://example.org/sky/); left out, PICTURES_BASE.

Returns

string

The file's address.

Examples

import { deepSkyPicture, pictureUrl } from "@johnmorrisdotca/hoshi-stars/deep-sky/pictures";

console.log(pictureUrl(deepSkyPicture("M31")!));
console.log(pictureUrl(deepSkyPicture("M31")!, "https://example.org/sky"));
https://johnmorrisdotca.github.io/hoshi-stars/pictures/M31.webp
https://example.org/sky/pictures/M31.webp

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.47.0.