Skip to main content

Module swarm

Module swarm 

Source
Expand description

Particle-swarm scene: ~10k CPU-simulated particles drifting through a flow field, drawn as instanced additive sprites (the starfield’s approach, scaled up). One of the two preset-driven systems (ADR-0002 layers 1-2).

Its behavior is a set of named parameters — force, spin, burst, hue, brightness, size — that a preset binds to expressions over the audio analysis (Plan 0003 Phase 5). All per-particle math is CPU-side; no compute shader. Motion is deterministic; the only randomness is the seeded initial scatter (NFR 6).

Structs§

SwarmScene
~10k-particle CPU flow-field swarm, driven by named preset parameters.

Constants§

PARAMS
Parameter vocabulary — see fragment_field::PARAMS. Keep in sync with set_param below.