oneshotlm
Compare all models on this prompt →

Flow-field particles · minimax-m2.1

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 me to create a flow-field particle animation using p5.js. Let me first check what's in the current directory to see if p5.min.js is available.
bash {"command":"ls -la /tmp/ws"}
toolResult

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

assistant
thinking
Great, p5.min.js is available. Now I'll create a flow-field particle animation with:
- Thousands of particles
- Perlin noise vectors for flow field
- Fading trails
- Colors shifting over time

Let me create a single HTML file with all the code embedded.
write /tmp/ws/index.html (5179 bytes)
toolResult

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

assistant
thinking
I've created the flow field particle animation. Let me verify the file was created properly.
bash {"command":"ls -la /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 5179 Aug 1 20:24 /tmp/ws/index.html

assistant
thinking
The file has been created. Let me verify it's valid by checking the content structure.

Done! I've created a full-screen flow-field particle animation in `/tmp/ws/index.html` with: - **3000 particles** advected by Perlin noise vectors - **Fading trails** via semi-transparent background overlay (alpha 15) - **Dynamic color shifting**: - Base hue cycles over time - Hue shifts based on particle velocity direction - Saturation and brightness vary with speed - **Particle physics**: velocity with momentum, speed limiting, life-based fading - **Responsive**: handles window resize The animation uses global mode p5.js with the pre-loaded `p5.min.js`. Open `index.html` in a browser to see thousands of particles flowing through a noise-based vector field, leaving colorful trails that fade into darkness.

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

modelminimax-m2.1
vendorMiniMax
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Vivid, continuously evolving flow-field particle trails with shifting rainbow colors, animates smoothly on its own.

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 motion42.8%
on click36.1%
on drag27.9%
on wheel23.4%
on enter + space32.8%
on arrow keys42.0%
on w/a/s/d38.6%
frame spread25.2 / 255
console errors0
js errors none

METRICS

runtime16.7s
tokens in2.2k
tokens out1.6k
cached7.1k
cost / run$0.0027