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 · Facts, line drawings and positions

lineupProjectfunction

Where each body is on a picture width by height pixels seen by view: the sizes are true, so a body smaller than a pixel has a radius under 1.

Import it

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

Definition

function lineupProject(places: readonly LineupPlace[], view: LineupView, width: number, height: number): LineupDot[]

Parameters

NameTypeDescription
placesreadonly LineupPlace[]

The places.

viewLineupView

The camera.

widthnumber

The picture's width in pixels.

heightnumber

The picture's height in pixels.

Returns

LineupDot[]

A dot for each body, in the same order.

Examples

import { lineupBodies, lineupProject, lineupView, placeLineup } from "@johnmorrisdotca/wakusei-planets";

const places = placeLineup(lineupBodies({ planets: true }), "row");
console.log(lineupProject(places, lineupView(places, 0.3), 800, 450)[0]?.r);
3.7998331736213395

What it prints (run when this page was built)

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