This HTML5 Canvas example simulates a large mass like a sun, and several small masses like planets orbiting around each other. Check out the simulator here: https://pghcpc.com/canvas/space.html
Make sure to tap or click the page to display several settings to change the way the simulator looks and behaves. Here are a few screenshots.
![](https://pghcpc.com/wp-content/uploads/2022/03/Screenshot_2022-03-07_15-27-24.png)
![](https://pghcpc.com/wp-content/uploads/2022/03/Screenshot_2022-03-07_15-29-53.png)
![](https://pghcpc.com/wp-content/uploads/2022/03/Screenshot_2022-03-07_15-29-03.png)
![](https://pghcpc.com/wp-content/uploads/2022/03/Screenshot_2022-03-07_15-30-59.png)