Augmented Reality Fireworks in JavaScript (#JSVFX) @Radu
Augmented Reality Fireworks in JavaScript (#JSVFX)  @Radu
Uploaded December 2022 | Updated September 2026, 2 weeks ago
In this video I teach you how to use vanilla JavaScript to make a Sparkler (or Fireworks). We code the sparkler from scratch, by implementing a simple particle system and show the sparkler over a video coming from the camera in real-time. It's a small project that teaches you about accessing the camera, basic image processing and particle physics. Have fun!

⭐️LINKS⭐️
Lesson on Interpolation (LERP): youtu.be/J_puRs40GhM
Video about the Squared Root: youtu.be/VIWw8evmg6o
Pythagorean Theorem: youtu.be/iqSlzYXdFzw
Draw the Portal (Dr. Strange Game): youtu.be/0SxiyLk2IMM

⭐️MY OTHER JS VFX⭐️
Torch: youtu.be/Q_SbeuxHUzA
Spiderman's web shooters: youtu.be/xkhvb_GYgx4
Dr. Strange's portal opening: youtu.be/0SxiyLk2IMM
KameHameHa: youtu.be/qcQqlzYCXNM
Matrix Effect on shirt: youtu.be/GmB0ge-CuZo
Theremin: youtu.be/k8seP2yEKqQ

⭐️CODING ULTRAMARATHON⭐️
I implemented many javascript camera effects during my coding ultramarathon: youtube.com/playlist?list=PLB0Tybl0UNfYqtrzXghkjL3UP1-17D3rE

⭐️ TABLE OF CONTENT ️⭐️
0:00 Intro
0:29 Project setup
2:22 Accessing Camera
6:27 Implementing the Effect class
11:22 Getting Image Data from HTML Canvas
14:07 Get blue Pixel Locations
20:41 Distance between Colors
24:47 Getting the Average location
27:04 Particle System
30:54 Styling the Sparkles
Augmented Reality Fireworks in JavaScript (#JSVFX)A Virtual World - JavaScript Course: Lesson 5 / 11 [Procedural Generation with JavaScript]Procedural Drawing and Animation with JavaScript | Coding on a Flight!3D Camera in JavaScript - No Libraries [Understanding AI - Lesson 10 / 15]Realistic Spinning Wheels with JavaScript (SEISURE WARNING!)⭐🏆⭐PRIZES: Racing AI Competition⭐🏆⭐ DEADLINE: May 15ᵗʰ 2024Blindfolded Live Coding the Bezold Camera Effect in JS (Inspired by @Vsauce)JavaScript Creative Coding Project (Train Simulation v2)🎄 Christmas Calendar Coding Project Showcase 🎄JavaScript ⛸️ Christmas Calendar 📅 Day 22 🎄Polyrhythms in JavaScript | How Math Can Make Your Code Better (#SoMEπ )JavaScript Strandbeest - Part 2 - Gravity, Wind and Evolution
Radu Mariescu-Istodor |

Augmented Reality Fireworks in JavaScript (#JSVFX)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER