orrery

system model

Concentric circles of varying line widths
Orbits

The Orrery is a virtual orrery initially built for worldbuilding purposes. It currently contains a semi-accurate model of the solar system. Distance isn’t 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 (referred to as Bodies) to load into the Orrery. A Body can have the following attributes:

ida unique identifier
tetheranother optional Body to orbit around of
rradius
vorbital velocity
ororbital radius (1)
rsrotation speed
const SYSTEM = new Model()
const ORRERY = new Orrery({
width: 800,
height: 500,
bg: '#030303',
fg: '#e4e4e4',
model: ORRERY,
})
ORRERY.render()
The Solar System
Systema Solaris
Orbital trails 1
Ocular
Orbital trails 2
Faerie Ring
Orbital trails 3
The Keyhole