UI guide
The interface has two halves: a developer-facing settings panel (lil-gui)
and a product-facing dashboard (src/brain-ui.ts).
Settings panel (lil-gui)
src/gui.ts mounts a lil-gui panel inside the #guiHost card (falling back to a
floating panel if the host is missing). It has two folders.
Info: live, read-only counts, polled via .listen():
- Neurons
- Axons
- Signals
Settings: every control routes through Brain.updateSettings():
| Control | Range | Effect |
|---|---|---|
| Max Signals | 0..limitSignals | Live active-signal cap (currentMaxSignals). |
| Signal Size | 0.2..2 | Particle point size. |
| Signal Min Speed | 0..8 | Lower bound of signal speed. |
| Signal Max Speed | 0..8 | Upper bound (clamped to ≥ min). |
| Neuron Size Mult | 0..2 | Neuron point-size multiplier. |
| Neuron Opacity | 0..1 | Neuron shader opacity. |
| Axon Opacity Mult | 0..5 | Axon line opacity multiplier. |
| Signal / Neuron / Axon Color | color | Recolors the respective elements. |
| Background | color | Stage background (sceneSettings.bgColor). |
| Floor Platform | toggle | Show/hide the floor. |
The "Signal Max Speed" control guards min <= max: if you drag max below min,
it snaps max back up to min.