Smoke particle system demo, based on Dan Shiffman’s original example for Processing.
The code makes use of the p5.Vector class, including the createVector() function. The various calculations for updating particles’ positions and velocities are performed with p5.Vector methods.
The particle system is implemented as a class, which contains an array of objects (of class Particle).
Smoke Particles by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.