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 · A star drawn from its numbers as SVG, and next to the Sun

portraitLookfunction

The look a profile is drawn with, or undefined where it has no temperature to draw.

Import it

import { portraitLook } from "@johnmorrisdotca/hoshi-stars/portrait";

Definition

function portraitLook(profile: StarProfile): PortraitLook | undefined

Parameters

NameTypeDescription
profileStarProfile

A star's profile.

Returns

PortraitLook | undefined

The look, or undefined where the profile has no temperature.

Examples

import { starByName } from "@johnmorrisdotca/hoshi-stars";
import { starProfile } from "@johnmorrisdotca/hoshi-stars/profile";
import { portraitLook } from "@johnmorrisdotca/hoshi-stars/portrait";

console.log(portraitLook(starProfile(starByName("Betelgeuse")!)), portraitLook(starProfile(starByName("Sirius")!)));
supergiant hot

What it prints (run when this page was built)

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