Coding Challenge #27: Fireworks!
In this 4th of July themed coding challenge, I build an HTML5 canvas fireworks simulation from scratch using the p5.js JavaScript library. I also show how to use Processing to create 3D Fireworks. Code: https://thecodingtrain.com/challenges... š¹ļø p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s... š„ Previous video: Ā Ā Ā ā¢Ā CodingĀ ChallengeĀ #26:Ā 3DĀ SupershapesĀ Ā š„ Next video: Ā Ā Ā ā¢Ā CodingĀ ChallengeĀ #28:Ā MetaballsĀ Ā š„ All videos: Ā Ā Ā ā¢Ā CodingĀ ChallengesĀ Ā References: š PixelPyros: http://seb.ly/work/pixelpyros/ š„ PeasyCam Website: http://mrfeinberg.com/peasycam/ Videos: š“ Livestream Archive: Ā Ā Ā ā¢Ā CodingĀ TrainĀ LiveĀ StreamĀ 48Ā -Ā ComputerĀ Vis...Ā Ā Related Coding Challenges: š #78 Simple Particle System: Ā Ā Ā ā¢Ā CodingĀ ChallengeĀ #78:Ā SimpleĀ ParticleĀ SystemĀ Ā Timestamps: 00:00 Welcome to Another Coding Challenge! 00:35 Code! Create a Particle constructor 03:45 Launch the Particle from a Random position 04:12 Add some Gravity 05:29 Create a Firework constructor 07:19 š¶ This Dot! Never Forget the This Dot! š¶ 08:08 Randomize the Velocity 08:32 Figure out When the Particle goes Down 11:23 Make the Fireworks burst 18:56 Make the Fireworks fade out 20:47 Get rid of Particles when they're Done 22:46 Get rid of Fireworks when they're Done 24:30 Add a Trail and Color to Fireworks 27:51 Back to Processing, making it 3D! 29:83 Rotate the Scene with PeasyCam 32:13 Start Fireworks at a Random Z Location Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound š Website: http://thecodingtrain.com/ š¾ Share Your Creation! https://thecodingtrain.com/guides/pas... š© Suggest Topics: https://github.com/CodingTrain/Sugges... š” GitHub: https://github.com/CodingTrain š¬ Discord: Ā Ā /Ā discordĀ Ā š Membership: http://youtube.com/thecodingtrain/join š Store: https://standard.tv/codingtrain šļø Twitter: Ā Ā /Ā thecodingtrainĀ Ā šø Instagram: Ā Ā /Ā the.coding.trainĀ Ā š„ Coding Challenges: Ā Ā Ā ā¢Ā CodingĀ ChallengesĀ Ā š„ Intro to Programming: Ā Ā Ā ā¢Ā StartĀ learningĀ here!Ā Ā š 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-o... This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod... #fireworks #natureofcode #oop #3d #forces #gravity #particlesystems #javascript #p5js #processing

Coding Challenge #28: Metaballs

Turning Images into Dots: The Magic of Dithering

Coding Challenge 188: Voice Chatbot

I Gave ChatGPT a Body

Animation vs. Math

Coding Challenge #24: Perlin Noise Flow Field

The Strange Math That Predicts (Almost) Anything

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

Animation vs. Geometry

Coding Challenge 93: Double Pendulum

The AI Take Over Has Completely Backfired and I Can't Be Happier

I turned an old van into a 2-STORY tiny house

I Tried to Code a Chess Engine. It Broke Me.

How SpaceX Humiliated Wall Street

Something is jamming GPS over Europe. Here's what we found

Every Web Browser Explained in 20 Minutes

NEW CHESS BOT IS 4000 ELO?!?!

A Deep Dive Into A Series Of Cellular Automata (Part 1)

Coding Challenge #16: L-System Fractal Trees

