Boids flocking · gpt-4.1-mini
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 (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!
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
EVALUATION
Boids flock in clusters with continuous smooth movement, matching flocking prompt, though mouse flee/steer effect isn't clearly distinguishable from idle animation.
Vision grade · anthropic/claude-sonnet-5
MEASUREMENTS
Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.