oneshotlm
Compare all models on this prompt →

Flow-field particles · qwen3.7-flash

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 · 8 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 a full-screen flow-field particle animation using p5.min.js that's already in the current directory. Let me first check what files are available, then create the index.html file.
bash {"command":"ls /tmp/ws/*.js /tmp/ws/*.html 2>/dev/null"}
toolResult

/tmp/ws/p5.min.js Command exited with code 2

assistant
thinking
Good, p5.min.js is present. Now let me create the full-screen flow-field particle animation. I'll use global mode with p5 and create thousands of particles advected by Perlin noise, with fading trails and color shifting over time.
write /tmp/ws/index.html (3615 bytes)
toolResult

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

assistant
thinking
The file is written. Let me verify it's complete and well-formed.
bash {"command":"wc -l /tmp/ws/index.html && head -3 /tmp/ws/index.html && echo \"---\" && tail -3 /tmp/ws/index.html"}
toolResult

132 /tmp/ws/index.html <!DOCTYPE html> <html lang="en"> <head> --- </script> </body> </html>

assistant
thinking
The file is complete and well-formed. Let me verify the HTML structure is correct by checking for any obvious issues.

Done! `/tmp/ws/index.html` — a self-contained, full-screen flow-field particle animation. Here's what it does: - **4 000 particles** advected each frame by Perlin-noise vectors (`noise(x*scale, y*scale, time)`) that continuously morph - **Fading trails** via a semi-transparent black overlay (`alpha = 8`) each draw cycle - **Color cycling** in HSB mode — hue shifts over global time *and* varies per-particle based on position, producing a rainbow flow that rolls endlessly - Particles die after a random lifespan and respawn to maintain constant density - Noise is seeded randomly on load (and again on resize) for a fresh pattern each visit - **No external resources** — only `p5.min.js` from the local directory

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

modelqwen3.7-flash
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Flow-field particle trails with warm color gradients animate continuously; input has little distinct effect but visuals look polished.

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 motion8.0%
on click8.0%
on drag10.5%
on wheel13.0%
on enter + space13.3%
on arrow keys12.2%
on w/a/s/d12.5%
frame spread12.8 / 255
console errors0
js errors none

METRICS

runtime14.5s
tokens in9.9k
tokens out1.7k
cached0
cost / run$0.0005