# Particles CPU ParticleEmitter: sub-emitters, collision, trails, and deterministic seeding. ```{raw} html ▶ Run in browser ``` **Tags:** `3d` For compute-shader GPU particles see ``gpu_particles.py``. Demonstrates: - Firework: upward burst, sub_emitter_death creates sparkle explosion - Waterfall: particles fall and bounce off ground plane - Comet: moving emitter with trail rendering - Deterministic toggle: press R to restart with same seed, proving identical replay Run: uv run python examples/features/3d/particles.py Controls: 1 - Firework burst 2 - Toggle waterfall 3 - Toggle comet R - Restart all (deterministic replay) A / D - Orbit camera W / S - Zoom in / out ## Source ```{literalinclude} ../../examples/features/3d/particles.py :language: python :linenos: ```