tubeshowcase●1,672,197 videos♡ My collection 0
← Learn to Code

Learn to Code08:15

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

The Coding Train ↗

From the creator

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!

Published 2021-03-12 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code