4.2: Many Particle Systems (Emitters!) - The Nature of Code

4.2: Many Particle Systems (Emitters!) - The Nature of Code

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=wDYD3JVtOys



Duration: 8:15
35,831 views
881


In this video, I add an Emitter class to further organize the array of particles and allow for multiple particle systems in a p5.js sketch. Code: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/4-particles/2-particle-emitters

p5.js Web Editor Sketches:
đŸ•šī¸ Particle Emitters: https://editor.p5js.org/codingtrain/sketches/YqAxA5CYy
đŸ•šī¸ Particle Emitters with Movers Exercise: https://editor.p5js.org/codingtrain/sketches/UXmqwcpRL
đŸ•šī¸ Particles Following Mouse Exercise: https://editor.p5js.org/codingtrain/sketches/1zTN6PYJg
đŸ•šī¸ Particle Emitters Color Exercise: https://editor.p5js.org/codingtrain/sketches/IYisp9xmJ

đŸŽĨ Previous video: https://youtu.be/syR0klfncCk?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
đŸŽĨ Next video: https://youtu.be/44RSr49m6LU?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
đŸŽĨ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM

Videos:
đŸŽĨ Angles and Rotation: https://youtu.be/DMg-WRfNB60
đŸŽĨ Fireworks!: https://youtu.be/CKeyIbT3vXI
đŸŽĨ Inheritance in JavaScript: https://youtu.be/MfxBfRD0FVU
đŸŽĨ Polymorphism in JavaScript: https://youtu.be/8a5BkwuZRK0

Timestamps:
0:00 Welcome back!
0:28 Creating an Emitter class.
1:32 Let's add update() and show().
2:37 Let's create an emitter in the sketch.
3:20 How can we add particles.
4:37 Many emitters!
5:58 Some exercises you could try.
6:41 What's next?

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
💡 GitHub: https://github.com/CodingTrain
đŸ’Ŧ Discord: https://thecodingtrain.com/discord
âœĒ Nebula: https://go.nebula.tv/codingtrain
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
đŸ–‹ī¸ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/

đŸŽĨ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
đŸŽĨ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new

#forbeginners #javascript #p5js