Boids flocking · mercury-2
Output generated Cost / run $0.0027 Runtime 8.8s
Prompt for this run
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.
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.
RUN
METRICS
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 (5424 bytes)Successfully wrote 5424 bytes to index.html
The **index.html** file has been created in the current directory. It contains a full‑screen canvas that runs a flocking simulation of boids with separation, alignment, cohesion, oriented triangle rendering, smooth steering, and mouse‑flee behavior. No external resources are required; everything is self‑contained.