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

starLineSvgfunction

A star as a line drawing, as an SVG string: its outline (squeezed when it is oblate), its cells and spots as outlines, a ring of rays, and, drawn round it, the Sun's size and the orbits of the Earth and Jupiter wherever they fall in the picture, so the size can be read against what we know. A caption under it gives the radius, the temperature and the class. It takes the options of lineSvg (the size, pose, fill, zoom, pan, lang and the colours); a picture of a star with no pose is a portrait of the Sun's axis.

Import it

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

Definition

function starLineSvg(star: StarNumbers | StarLook, options?: LineOptions): string

Parameters

NameTypeDescription
starStarLook | StarNumbers

The star's numbers, or a star already made with starLook.

options (optional)LineOptions

The drawing's size, pose and colours.

Returns

string

The SVG markup, <svg ...> to </svg>.

Examples

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

const svg = starLineSvg({ name: "Betelgeuse", temperatureK: 3600, radiusSun: 760, luminosityClass: "Ia" }, { size: 320 });
console.log(svg.startsWith("<svg"), svg.includes("Earth's orbit"));
true true

What it prints (run when this page was built)

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