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 <wakusei-space> element: the Earth, Moon, Sun and planets in their places

import { … } from "@johnmorrisdotca/wakusei-planets/space/element";

Exports

NameKindWhat it is
BodyInfotypeWhat a page can tell a reader about a body now.
RideOptionstypeHow a ride along is done: view from (the default) puts the camera at the target looking at the body it goes round, follow keeps it a distance from the target looking at it (distanceKm, 3000 by default, for a point of your own; a body or a moon is kept at the distance the zoom says); look down (the default) or horizon is where a camera at the target points; around is the body a point of your own goes round (the Earth by default); smooth (the default) glides from the old camera to the new one in about a second and a bit, and jumps instead for a reader who asked for reduced motion.
RidePointtypeAny moving point a camera can ride: where it is and which way it goes at a moment, from the centre of the body it goes round, in kilometres and kilometres a second, in the scene's axes (J2000 equatorial, y north).
RideTargettypeWhat a camera can ride along with: a body of the view (moon, mars, ...
RidingtypeWhat the camera is riding along with now: the target, the body it goes round, how (from or follow), where it looks, and the distance kept for a point.
setThreeLoaderfunctionWhere three.js comes from, if a page wants to hand it over itself (before the first element connects).
SPACE_BODIESconstantThe eleven bodies the space view places, names and lets a reader choose: the Earth, the Sun, the Moon, the seven other planets and Pluto.
SpaceBodytypeOne of the bodies in SPACE_BODIES, by the package's usual lower-case name.
SpaceLighttypeHow the Earth is lit: sun is the true light; lit is daylight from the camera's side, so a view of the night side is never black.
SpacePresettypeA named distance for zoomFor: the Earth, the Moon, the Sun, the inner planets, the whole solar system, or a planet with its nearer moons (jupiter-moons).
SpaceStatetypeWhat the space view is doing: loading, live, unavailable (no WebGL), lost (the GPU took the context; it comes back by itself).
WakuseiSpaceclassThe <wakusei-space> custom element: the Earth, the Moon, the Sun and the planets where they are at a date and time, drawn with three.js through the shared renderer.

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