Skip to content
/ swirl Public

An n-body simulation using pixel art in the terminal.

License

Notifications You must be signed in to change notification settings

766F6964/swirl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swirl

Overview

swirl is just a little toy project to run n-body simulations in the terminal using pixel art for visualization. This entire project is heaviely based on nbody-c from iSach, and mostly was developed to learn more about how n-body simulations work. An example of how a simulation can look like is shown below:

Implementation & Ideas

Currently, swirl only uses the trivial (inefficient) approach to compute n-body simulations. I might add a barnes-hat implementation in the future, for more efficient simulations.

I've also started working on a galaxy simulator, however, it is currenly not functional. The demo just utilizes the input file, from the nbody-c project.

Dependencies

Currently, the following dependencies are required to build the project:

  • dotdotdot: A graphics library, developed by me, that allows to render to the terminal using braille characters
  • log: A small logging library, developed by me.

About

An n-body simulation using pixel art in the terminal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published