oneshotlm
Compare all models on this prompt →

Flow-field particles · grok-4.6

Using the pre-provided p5.min.js (global p5, instance or global mode), create a full-screen flow-field particle animation: thousands of particles advected by Perlin-noise vectors, leaving fading trails, with colors shifting over time.

⛨ sandboxed Open in new tab ↗
transcript · 6 messages
user

Using the pre-provided p5.min.js (global p5, instance or global mode), create a full-screen flow-field particle animation: thousands of particles advected by Perlin-noise vectors, leaving fading trails, with colors shifting over time.

assistant
thinking
The user wants me to create a single-page web app with a flow-field particle animation using p5.js. Let me first check what's in the current directory and understand the p5.min.js file is present.

I'll check the directory and p5 setup, then build a self-contained full-screen flow-field particle animation.

bash {"command":"ls -la /tmp/ws"}
toolResult

total 1012 drwxr-sr-x. 2 node node 23 Aug 13 01:29 . drwxrwsrwx. 3 root node 16 Aug 13 01:29 .. -rw-r--r--. 1 node node 1034532 Aug 13 01:29 p5.min.js

assistant
thinking
I'll create a beautiful full-screen flow field particle animation using p5.js. Thousands of particles, Perlin noise flow field, fading trails, colors shifting over time.

Building a self-contained full-screen Perlin-noise flow field with fading particle trails.

write /tmp/ws/index.html (4421 bytes)
toolResult

Successfully wrote 4421 bytes to /tmp/ws/index.html

assistant
thinking
The file has been written. The user asked for a single-page web app with p5.min.js loaded locally. I've created a full-screen flow-field particle animation. Let me verify the file exists.

`index.html` is ready — a full-screen Perlin-noise flow field that loads local `p5.min.js`. - **~4200 particles** follow a slowly evolving 3D noise vector field - **Fading trails** via a translucent dark overlay each frame - **Hue drift** over time plus per-particle variation - **Click** reseeds the field and palette; **move** stirs nearby particles; **space** pauses; **C** clears trails

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

modelgrok-4.6
vendorxAI · Grok
harnesspi-agent
generated2026-08-13

EVALUATION

5/5 working

Flow-field particle animation with fading trails, evolving colors, and reactive click/drag/wheel stirring effects; arrows/wasd no effect (not needed).

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.

idle motion10.6%
on click45.4%
on drag36.1%
on wheel22.2%
on enter + space7.2%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread19.6 / 255
console errors0
js errors none

METRICS

runtime27.2s
tokens in6.9k
tokens out1.8k
cached1.9k
cost / run$0.0217