This is a web demo of N-body gravity simulation. Unlike its classical variant, this one incorporates elements of general relativty. The visualization itself shows the moving bodies - colorful stars - at their immediate positions relative to a static observer, as if light travels at infinite speed, without bending. However, the gravity attraction propagates at a finite speed, which is the maximum speed any simulation body can reach, governed by the Lorentz transformation. This is a mere approximation of the general theory of relativity formulated by Einstein, but subtly affects the movement patterns.

The sources of this demo are available here: https://github.com/Isameru/isamerion . The simulation is written in C++ and compiled to WebAssembly using Emscripten, but you can compile and run it on Windows (using Visual Studio) and Linux or WSL (using GCC).