oneshotlm
Compare all models on this prompt →

Flow-field particles · gpt-5-mini

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
**Creating index file**

I need to create a single index.html file and make sure to include p5.min.js, which is already in the current directory. To get started, I'll check the existing files. I can do this by using a bash command to list everything in the directory. This way, I’ll have a clear view of what’s available and can ensure I’m set up correctly before moving on with the coding! Let's proceed step by step.
bash {"command":"ls -la"}
toolResult

total 1028 drwxrwxrwx 3 node node 96 Jul 22 16:57 . drwxr-xr-x 1 root root 4096 Jul 22 16:57 .. -rw-r--r-- 1 node node 1034532 Jul 22 16:57 p5.min.js

assistant
thinking
**Creating an HTML file**

I'm adding control variables like noiseScale, stepSize, maxSpeed, fadeAlpha, and colorShiftSpeed to my project. I’m considering performance optimizations, like using typed arrays, but it doesn’t seem necessary. I need to ensure that I include p5.min.js via the script tag before my script. I’m thinking about whether to add touch move functionality, but I’m uncertain if it’s necessary. For edge wrapping, if pos.x is less than 0, I’ll make it equal to width and also handle the other sides. Finally, I set the frame rate to p5's default of 60 and will write the index.html file.
write index.html (5515 bytes)
toolResult

Successfully wrote 5515 bytes to index.html

assistant

I created index.html with a fullscreen p5.js flow-field particle animation that uses the provided p5.min.js. Open index.html in a browser to run — it draws thousands of particles advected by Perlin-noise vectors, leaves fading trails, and cycles colors over time. Mouse movement nudges the flow.

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

modelgpt-5-mini
vendorOpenAI
harnesspi-agent
generated2026-07-22

EVALUATION

3/5 working

Flow-field particle trails with color shifting animate on their own; keyboard/mouse inputs show no distinct extra reaction.

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 motion11.1%
on click4.6%
on drag3.5%
on wheel2.3%
on enter + space2.1%
on arrow keys2.3%
on w/a/s/d2.2%
frame spread8.1 / 255
console errors0
js errors none

METRICS

runtime35.6s
tokens in3.1k
tokens out2.6k
cached2.4k
cost / run$0.0061