Reference · Facts, line drawings and positions
PortraitOptionstype
Options for a pose when no date is given. Angles are in degrees: tilt leans the pole on the page, pitch is how far the viewer looks over the pole, phase is the Sun–body–viewer angle and spin the longitude at the middle of the disc.
Import it
import type { PortraitOptions } from "@johnmorrisdotca/wakusei-planets";
Definition
interface PortraitOptions {
tilt?: number;
pitch?: number;
phase?: number;
spin?: number;
}
Members
| Name | Type | Description |
|---|---|---|
tilt (optional) | number | undefined | The axial tilt on the page: how far the north pole leans to the right of straight up. Default: the body's own tilt (turned to 120 or less). |
pitch (optional) | number | undefined | How far the viewer looks over the north pole: 0 sees the equator edge-on, 90 looks straight down at the pole. Default 12, or 22 for a body with rings. |
phase (optional) | number | undefined | The Sun–body–viewer angle: 0 is full, 90 half, 180 new. Default 38. |
spin (optional) | number | undefined | The longitude at the middle of the disc, degrees east. Default: the longitude of the body's best-known side. |
Examples
import { portrait, type PortraitOptions } from "@johnmorrisdotca/wakusei-planets";
const options: PortraitOptions = { tilt: 20, pitch: 15, phase: 60 };
console.log(portrait("jupiter", options).light.length);3What it prints (run when this page was built)