>>26It uses basic high school physics:
1. Each partice has velocity vector, which is set to random at the start of script
2. Then velocity is changed by gravity force, pointing towards attractor point.
3. The particle also produces some heat, which gets dissipated in four directions, leaving fat trails.
Basically, you should read
https://www.mathsisfun.com/calculus/integration-introduction.html