# GPU Particle Fireworks a sequential burst show of every spread_pattern. ```{raw} html ▶ Run in browser ``` **Tags:** `2d` `particles` `gpu` `effects` `fireworks` ## What it demonstrates - GPUParticles2D.spread_pattern: how the launch velocity is sampled, which is what gives each burst its silhouette -- star - speed follows an N-point star curve (spread_points) ring - omnidirectional, uniform on a circle gaussian - a soft normal-distributed spray around the aim direction disc - a uniform circular cone - Firing crisp one-shot bursts by pulsing ``emitting``: a paused emitter lets its live grains finish their arc and fade, then never respawns dead ones. - A small pool of reusable shells relaunched round-robin, so several bursts hang in the air at once like a real fireworks show. Each burst recycles a shell whose grains have all died since it last fired, so the pulse repopulates every grain at once -> one clean burst that drifts under gravity and fades. speed/gravity are in screen pixels (per second). Controls: SPACE - fire an extra burst now ESC - Quit ## Source ```{literalinclude} ../../examples/features/2d/fireworks.py :language: python :linenos: ```