home

orrery

concentric circles of varying line widths
orbits

The Orrery is a virtual orrery initially built for worldbuilding purposes. It contains a quasi-accurate model of the solar system. Distance isn’t (yet) to scale and the positions of the celestial bodies are incorrect, but the orbital speeds and relative sizes are approximately correct. 1

usage

orrery

Create an Orrery with the any of the following options:

widthcanvas width in pixels
heightcanvas height in pixels
bgcanvas background colour
fgcanvas foreground (stroke) colour
modela Model object to load into the Orrery

model

A Model contains a collection of celestial objects (Bodies) to load into the Orrery. A Body can have the following attributes:

ididentifier
tetheranother optional Body to orbit around of
rradius
vorbital velocity
ororbital radius 2
rsrotation speed
const system = new Model()

const orrery = new Orrery({
  width: 800,
  height: 500,
  bg: '#030303',
  fg: '#e4e4e4',
  model: system,
})

orrery.render()