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 · The data door: hand the package your own stars or objects as a source with its own licence and credit, and see whose data is on the screen

BitmapLiketype

What a picture needs of its bitmap: an ImageBitmap fits. *

Import it

import type { BitmapLike } from "@johnmorrisdotca/hoshi-stars/door";

Definition

interface BitmapLike {
    readonly width: number;
    readonly height: number;
    close?(): void;
}

Members

NameTypeDescription
widthnumber
heightnumber
close (optional)(() => void) | undefined

Examples

import type { BitmapLike } from "./data-door.ts";

const size = (bitmap: BitmapLike): number => bitmap.width * bitmap.height;

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