Boids flocking · inkling-small
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 · 5 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.
thinking
The user wants a single-file flocking simulation. I'll create index.html with canvas-based boids using separation, alignment, cohesion, plus mouse avoidance, drawn as oriented triangles with smooth steering.
/tmp/ws/index.html (5618 bytes){"command":"ls -la index.html && wc -l index.html"}Successfully wrote 5618 bytes to /tmp/ws/index.html
-rw-r--r--. 1 node node 0 Aug 1 19:47 index.html 150 index.html
Created `index.html` — a self-contained full-screen flocking simulation with280 oriented triangle boids, separation/alignment/cohesion steering, smooth velocity limits, mouse-cursor flee behavior, and subtle trailing fade. No external resources.
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 and swirl smoothly, forming a ring around the mouse cursor with fleeing/orbiting behavior on click and drag.
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.