An open API service indexing awesome lists of open source software.

https://github.com/insolor/astro

N-body simulation program, written in euphoria programming language
https://github.com/insolor/astro

euphoria gravity-simulation

Last synced: 9 months ago
JSON representation

N-body simulation program, written in euphoria programming language

Awesome Lists containing this project

README

          

# Astro

N-body simulation program, written in euphoria programming language.

## Controls:

Keyboard:

- z - zoom in
- x - zoom out
- 1 - restore zoom to the default value
- c - clear screen (force redraw)
- f - follow the selected body
- -/+ - change time step (make the simulation faster or slower)
- p - pause
- P (shift+p) - make screenshot
- Shift+0 - divide by zero (crash and emit ex.err)
- Arrow keys - pan view
- Home - return view to the followed body
- 8 - select previous body
- 9 - select next body
- Esc - deselect
- Enter - view the next demo

Mouse:

- left button - select body or pan view
- mouse wheel - zoom in/out

![screenshot1](screenshots/screenshot1.png)

![screenshot2](screenshots/screenshot2.png)

![screenshot3](screenshots/screenshot3.png)