oneshotlm
Compare all models on this prompt →

Flow-field particles · minimax-m2.7

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 files are in the current directory to confirm p5.min.js is present.
bash {"command":"ls -la"}
toolResult

total 1028 drwxrwxrwx 3 node node 96 Jul 8 00:35 . drwxr-xr-x 1 root root 4096 Jul 8 00:35 .. -rw-r--r-- 1 node node 1034532 Jul 8 00:35 p5.min.js

assistant
thinking
Good, p5.min.js is present. Now I'll create a full-screen flow-field particle animation with:
1. Thousands of particles
2. Perlin noise vectors for flow field
3. Fading trails
4. Colors shifting over time

Let me write a complete, self-contained index.html file.
write index.html (3353 bytes)
toolResult

Successfully wrote 3353 bytes to index.html

assistant
thinking
I've created the flow-field particle animation. Let me verify the file was written correctly.
bash {"command":"ls -la index.html && head -20 index.html"}
toolResult

-rw-r--r-- 1 node node 3353 Jul 8 00:35 index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Flow Field</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } html, body { overflow: hidden; background: #000; } canvas { display: block; } </style> </head> <body> <script src="p5.min.js"></script> <script> const PARTICLE_COUNT = 4000; const NOISE_SCALE = 0.003; const SPEED = 2.5; let particles = []; let t = 0;

assistant
thinking
The file was written successfully. Let me quickly validate the syntax and structure.

Done! Created `index.html` with a flow-field particle animation featuring: - **4,000 particles** flowing through a Perlin noise vector field - **Fading trails** via semi-transparent background overlay - **Color shifting** — each particle's hue drifts gradually over time in HSB color space, with brightness/saturation modulated by velocity - **Responsive** — resizes to fill the window Open `index.html` in a browser to see the flowing, colorful particle streams.

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.7
vendorMiniMax
harnesspi-agent
generated2026-07-08

EVALUATION

2/5 partial

Mostly black canvas with sparse, faint curved trail fragments; no visible thousands of particles or dense flow field.

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 motion5.9%
on click6.3%
on drag6.2%
on wheel5.1%
on enter + space4.4%
on arrow keys3.1%
on w/a/s/d3.3%
frame spread8.5 / 255
console errors0
js errors none

METRICS

runtime16.5s
tokens in1.9k
tokens out1.3k
cached7.2k
cost / run$0.0017