Balls bouncing inside of a circle. This was inspired by a similar Numberphile video on chaotic systems.
- python 3.9
Using pip install these packages:
- pygame.
pip install pygame
- numpy (not sure but get it just in case)
pip install numpy
Simply run the chaos_balls.py file either by double clicking it or
py chaos_balls.py
To Add/Remove balls and manipulate their properties, i.e velocity, position, etc you can do so by opening chaos_balls.py in a text editor and follow the comments in line 153 as a guide.
-press p to pause