Skip to the content

Wakusei Planets惑星

The Sun, the planets and their moons as a clean line drawing, a shaded realistic drawing or a painted surface map, with real sizes, tilt and rotation, and the moons where they are at any date and time.

Wakusei is the Japanese word 惑星 for a planet. About the name

Contents

Reference · The Sun and Moon from a place: position, sunrise and sunset, Moon rise, set and phase, with suncalc 2's names and a better engine

getMoonIlluminationfunction

The Moon's phase.

Import it

import { getMoonIllumination } from "@johnmorrisdotca/wakusei-planets/suncalc";

Definition

function getMoonIllumination(date?: Date | number): MoonIllumination

Parameters

NameTypeDescription
date (optional)number | Date

The moment, as a Date (or milliseconds since 1970); now when left out.

Returns

MoonIllumination

The lit fraction, the phase, the bright limb's position angle in degrees and whether it is waxing.

Examples

import { getMoonIllumination } from "@johnmorrisdotca/wakusei-planets/suncalc";

const { fraction, waxing } = getMoonIllumination(new Date(Date.UTC(2026, 10, 24, 14)));
console.log(fraction.toFixed(2), waxing);
1.00 true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/wakusei-planets 0.24.0.