oneshotlm
Compare all models on this prompt →

Flow-field particles · mimo-v2.5

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 · 4 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 full-screen flow-field particle animation using p5.js. Let me build this with:
- Thousands of particles
- Perlin noise-based vector field for advection
- Fading trails
- Color shifting over time
- All in a single index.html file
- Using the pre-provided p5.min.js

Let me create this now.
write /workspace/index.html (2721 bytes)
toolResult

Successfully wrote 2721 bytes to /workspace/index.html

assistant
thinking
The file has been written. Let me verify it's there.

The file is written. Here's what the animation does: - **6,000 particles** advected through a Perlin-noise vector field - **Fading trails** via a semi-transparent black rectangle drawn each frame (`alpha 0.04`) - **Color shifting** — a global `colShift` counter rotates the hue over time, and each particle's hue also depends on its speed, giving a dynamic, living palette - **Flow field** — each cell in a 12px grid samples 3D Perlin noise (`x, y, zOff`), converting the value into an angle that directs the particle's acceleration - **Wrap-around edges** so particles never leave the canvas - **Speed-mapped styling** — faster particles get brighter, more saturated, thicker strokes; slower ones are dimmer and more transparent Just open `index.html` in a browser and watch the swirling, colorful flow field evolve.

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

modelmimo-v2.5
vendorXiaomi · MiMo
harnesspi-agent
generated2026-07-08

EVALUATION

4/5 working

Flow-field particle animation with fading trails and color shifting over time, continuously animating 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 motion61.2%
on click37.5%
on drag23.7%
on wheel23.7%
on enter + space24.3%
on arrow keys28.7%
on w/a/s/d34.6%
frame spread34.5 / 255
console errors0
js errors none

METRICS

runtime13.2s
tokens in2.2k
tokens out1.2k
cached2.2k
cost / run$0.0007