Boids flocking · deepseek-chat
Create a full-screen flocking simulation of boids using separation, alignment, and cohesion, drawn as oriented triangles that steer smoothly and flee from the mouse cursor.
transcript · 4 messages
Create a full-screen flocking simulation of boids using separation, alignment, and cohesion, drawn as oriented triangles that steer smoothly and flee from the mouse cursor.
index.html (9589 bytes)Successfully wrote 9589 bytes to index.html
I've created a full-screen flocking simulation of boids (oriented triangles) that implement separation, alignment, and cohesion behaviors. The boids also flee from the mouse cursor smoothly. The simulation is entirely self-contained in `index.html` with no external dependencies or network requests. Open the file in a browser to see the boids in action—they will steer dynamically and react to your mouse movements! Let me know if you'd like any adjustments or additional features.
TAKE IT TO CODE
A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.