Build a Particle Life Simulator
Build a simulation where colored particles follow simple attraction/repulsion rules that produce emergent life-like behavior.
Requirements
Spawn 500+ particles of 4-6 different colorsEach color pair has an attraction/repulsion force (configurable matrix)Real-time simulation at 60fps using CanvasInteractive force matrix editor (sliders or grid)Preset configurations that produce interesting behaviors (cells, galaxies, worms)Pause, reset, and speed controlsParticles wrap around screen edgesTechnical Notes
Core algorithm: for each particle, calculate net force from all nearby particles based on color-pair rules and distance. Use spatial hashing for performance.
Bonus Points
Mouse interaction (attract/repel particles)Record and replay simulationsExport force matrix as shareable config