This project is a bash script that simulates and animates a spiral galaxy using ASCII characters in your terminal. It incorporates various astrophysical concepts to create a scientifically inspired, visually appealing representation of a spiral galaxy.
- Simulates spiral arm structure
- Incorporates galactic rotation curves
- Simulates star formation and evolution
- Represents dust lanes and star clusters
- Includes effects of dark matter on galactic structure
- Animates galaxy growth and rotation
- Customizable parameters for fine-tuning the simulation
- Bash shell
- Standard Unix utilities:
seq
,awk
,sort
,tr
,bc
- A terminal that supports ANSI color codes
You can adjust various parameters at the beginning of the script to customize the simulation:
NUM_ARMS
: Number of spiral armsCENTRAL_BRIGHTNESS
: Brightness of the galactic centerDUST_DENSITY
: Density of dust lanesCLUSTER_CHANCE
: Probability of star cluster formationASYMMETRY_FACTOR
: Degree of asymmetry in the galaxyARM_TIGHTNESS
: How tightly wound the spiral arms are
Contributions to improve the simulation or add new features are welcome. Please feel free to submit a pull request or open an issue to discuss potential changes.
- Inspired by astrophysical concepts and real galaxy observations
- Thanks to the ASCII art community for inspiration on terminal-based visualizations