Boids flocking · gpt-4.1-mini
Output generated Cost / run $0.0050 Runtime 32.0s
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 (6040 bytes)Successfully wrote 6040 bytes to index.html
I created a full-screen boids flocking simulation in a single HTML file named index.html. - Boids are drawn as oriented triangles. - They steer with smooth acceleration using separation, alignment, and cohesion. - They flee from the mouse cursor within a radius. - The canvas resizes to fill the entire screen. Open index.html in a browser to see the simulation running in full screen. Let me know if you want any adjustments!