Let's Build a Confetti Cannon
Each particle has a few attributes that define its state: Start position Angle: the direction of movement Velocity: how fast it's moving All combined, these tell us where the particle is, which direction it's moving in, and how fast. We'll use the velocity components to move the particle.
https://varun.ca/confetti/