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