This simulation demonstrates Craig Reynolds' "boids" algorithm that models flocking behavior. Each boid follows three simple rules:
Complex group behavior emerges from these simple interactions.
You can configure the simulation via URL parameters:
hue: Base color hue (0-360)header: Main header textsubheader: Subheader textcount: Number of boids (50-500)speed: Max boid speed (1-20)vision: Perception radius (10-200)separation: Separation force (0.1-2.0)alignment: Alignment force (0.1-2.0)cohesion: Cohesion force (0.1-2.0)debug: Enable debug mode (true/false)Example: ?hue=200&header=My+Simulation&count=200
This simulation was created according to the following specifications:
"Create a beautiful, interactive boids simulation as a single file with dark theme. Use URL parameters for customization including 'hue' for color scheme and optional 'header'/'subheader' for text. Canvas should be full screen with toggle-able overlays for controls. Include animations, frame rate display, and mobile support. Implement 'debug' parameter for URL updates and logging."
Agents modifying this file should: