# Particle Life

A browser based 3D particle ecosystem with 50,000 particles, six species, WebGPU compute, glow, and optional microphone input. No build step or external assets.

Serve this folder locally, then open `http://localhost:8000` in a WebGPU capable browser:

```sh
python3 -m http.server 8000
```

## Controls

- **Drag** to orbit, **scroll** to zoom, and **double click** the world to reset the camera.
- Choose a **preset**, or click a cell in the **6 × 6 rule matrix** to change attraction or repulsion. **Randomise rules** creates a new ecosystem; **Reseed world** redistributes particles.
- **Pause** or press **Space** to stop and resume. The sliders change simulation tempo and glow.
- Enable **Microphone mode** to let loudness boost repulsion and bass boost attraction. It is optional, and audio is processed locally in the browser.

Browsers without WebGPU show a CPU preview. The live backend, particle count, and FPS are shown on the canvas.
