A boid model is visualized by using matplotlib as shown above.
boid.py
and part of model.py
are from here.
- matplotlib
- mesa
- numpy
- toml
- tqdm
- ffmpeg (when generating movie)
python src/run.py
If you want to create a movie file, execute python src/generate_movie
.
Note that ffmpeg
is required.