oneshotlm
Compare all models on this prompt →

Flow-field particles · mistral-medium-3.1

Output generated Cost / run $0.0032 Runtime 12.9s

Prompt for this run

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 ↗

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

modelmistral-medium-3.1
vendorMistral AI
harnesspi-agent
generated2026-08-01

METRICS

runtime12.9s
tokens in4.2k
tokens out1.4k
cached3.3k
cost / run$0.0032
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
→ write index.html (4709 bytes)
toolResult

Successfully wrote 4709 bytes to index.html

assistant

Created a self-contained `index.html` with a full-screen flow-field particle animation using p5.js. Features: - 5,000 particles advected by Perlin-noise vectors - Fading trails with semi-transparent background - Color shifts over time using HSB color space - Responsive to window resizing - Edge-wrapping particles - No external dependencies (uses local `p5.min.js`) Open the file in a browser to see the animation. The particles will follow the evolving flow field with smooth, organic motion.