âš¡
ElectriPy
Visualize the electric field of a point charges network.
🔌 Installation
Install Pygame and ElectriPy package:
$ pip install pygame
$ pip install electripy
You are all done! To start the simulation type:
$ python -m electripy
NOTE: you need to have Python and pip installed.
🔌 Controls
- right click to add an electron
- left click to add a proton
- CTRL + Z to remove last charge added
- CTRL + Y to add last charge removed
- R to remove all charges from screen
- E to show/hide the electric field
- + to increment the electric field brightness
- - to decrement the electric field brightness
- F to show/hide electric force vectors
- M to show/hide electric field vector at cursor position
- SPACE to show/hide vectors components
🔌 Physics
You can check out a simple explanation of the physics used to make ElectriPy HERE.