https://github.com/gavinlyonsrepo/particle_fire_simulation
  
  
    Particle fire simulation.  C++ graphics  demo using SDL2. 
    https://github.com/gavinlyonsrepo/particle_fire_simulation
  
c cplusplus cpp demonstration explosion graphics particle-fire-simulation particles plus s sdl sdl2 sdl2-app simulation
        Last synced: 6 months ago 
        JSON representation
    
Particle fire simulation. C++ graphics demo using SDL2.
- Host: GitHub
- URL: https://github.com/gavinlyonsrepo/particle_fire_simulation
- Owner: gavinlyonsrepo
- Created: 2017-05-26T15:52:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T20:25:45.000Z (12 months ago)
- Last Synced: 2025-04-06T20:47:55.083Z (7 months ago)
- Topics: c, cplusplus, cpp, demonstration, explosion, graphics, particle-fire-simulation, particles, plus, s, sdl, sdl2, sdl2-app, simulation
- Language: C++
- Homepage:
- Size: 471 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          
Overview
--------------------------------------------
* Title: particle fire simulation
* Description : particle fire simulation C++ graphics program. 
The program creates a SDL API driven graphic display in a window. For Linux based OS .
Download
-----------------------------------------------
```sh
cd ~/Downloads
curl -L -O https://github.com/gavinlyonsrepo/particle_fire_simulation/archive/master.zip 
unzip master.zip  
cd particle_fire_simulation-master
```
Build
--------------------------------------
* run 'make'  to build
* Exe file made at ./Bin/pfsim 
* run 'make help' for all the other options in make file including in install. 
Usage
------------------------------------------
```
pfsim  [arguments]
pfsim 800 600 5000 7 1000
```
Arguments list
| Number | Name | Default value | Notes  | 
| -------- | ----------- | ----------- | ----------- |
| 1 | width Resolution | 800 | width of SDL window | 
| 2 | height Resolution| 600 | height of SDL window | 
| 3 | number Of Particles |  5000 |  | 
| 4 | RGB bits | 7 | 1 - 6 to turn off red green or blue color , b100 = Red only | 
| 5 | Number of loop counts | 1000 |  | 
Dependencies
--------------------
[SDL2](https://en.wikipedia.org/wiki/Simple_DirectMedia_Layer)
A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard