Home▸Articles▸Generative Art & Algorithmic Patterns

The Science Behind the Sparkle: Understanding Fireworks in 2D

From ancient China to modern-day celebrations, fireworks have captivated audiences with their brilliant displays. In this simulation, we explore the physics that bring these dazzling spectacles to life.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

Understanding Fireworks

Fireworks are a visual spectacle that combines chemistry with physics. When ignited, they release energy in the form of light and sound. In our 2D simulation, we focus on the physical aspects such as gravity, air resistance (drag), and particle motion.

The simulation models these elements to create a realistic fireworks display, allowing us to study how each factor influences the trajectory and appearance of the explosion.

Gravity's Role

Gravity is a fundamental force that pulls objects towards the Earth. In our 2D simulation, it dictates the downward acceleration of the fireworks shell as it ascends into the air.

The strength and direction of gravity can be adjusted in the simulation to observe how changes affect the flight path and final burst pattern.

live demo · related simulation● LIVE

Drag and Its Effects

Air resistance, or drag, is a force that opposes motion through the air. In our simulation, it slows down the ascending shell and affects its descent, creating a more realistic trajectory.

By adjusting the gravity and drag settings, we can see how these forces interact to shape the fireworks' flight path and the pattern of debris after the explosion.

Particle Dynamics

The burst of a firework shell releases particles that spread out in all directions. These particles follow trajectories influenced by gravity, drag, and sometimes additional forces like thrust from residual gases.

In our simulation, the debris particles are modeled to show how they scatter and interact with each other, creating the intricate patterns seen in real fireworks.

Frequently asked questions

How does adjusting the burst size affect the display?

Adjusting the burst size changes the number of particles released during the explosion. Larger bursts result in more extensive and vibrant displays, while smaller bursts produce more concentrated patterns.

Why is gravity important for fireworks in real life?

Gravity is crucial because it determines how high a firework can go before falling back to Earth. It also affects the shape and size of the explosion, influencing the overall visual impact.

How does drag influence the appearance of fireworks?

Drag slows down the ascent and descent of the shell and particles, affecting their trajectories and the spread of debris after the explosion. It can create more intricate patterns with longer-lasting effects in the sky.

Can adjusting the gravity and drag settings in the simulation help predict real-world fireworks displays?

While not a perfect prediction tool, adjusting these settings in the simulation allows us to understand how different physical factors influence the display. This knowledge can be applied to better design and plan real-world fireworks shows.

Try it live

Everything above runs in your browser — open Fireworks Show (2D) and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Fireworks Show (2D) simulation

What did you find?

Add reproduction steps (optional)