oneshotlm
Compare all models on this prompt →

Flow-field particles · qwen3-coder-next

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

I'll create a full-screen flow-field particle animation using p5.min.js with Perlin noise, fading trails, and color shifting. First, let me check the current directory and the available p5.min.js file:

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

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

assistant

Great! The p5.min.js file is present. Now I'll create a complete single-page web app with a flow-field particle animation:

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

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

assistant
write /tmp/ws/index.html (3383 bytes)
toolResult

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

assistant

Done! I've created a complete single-page web app with a flow-field particle animation. The `index.html` file includes: **Features:** - **3000 particles** advected by Perlin noise flow fields - **Fading trails** created by drawing semi-transparent black rectangles each frame - **Color shifting** - each particle's hue gradually changes over time - **Time-varying flow field** - the noise evolves slowly, creating dynamic movement patterns - **Responsive design** - automatically resizes to fill the screen - **Edge wrapping** - particles reappear on opposite side when they hit screen edges **Technical details:** - Uses p5.min.js (loaded from the existing file) - All CSS and JavaScript are inline in a single HTML file - No external resources or network requests - Uses HSB color mode for smooth hue transitions - Particles follow Perlin noise vectors with time-based evolution Open `index.html` in a browser to see the animation. The flow field creates organic, fluid-like patterns with vibrant, shifting colors.

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-coder-next
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Flow-field particle animation with fading colorful trails runs continuously, though eventually oversaturates into dense noise without clearing.

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 motion26.3%
on click40.7%
on drag33.9%
on wheel25.4%
on enter + space24.7%
on arrow keys46.7%
on w/a/s/d42.8%
frame spread41.4 / 255
console errors0
js errors none

METRICS

runtime31.6s
tokens in826
tokens out1.9k
cached9.2k
cost / run$0.0023