oneshotlm
Compare all models on this prompt →

Flow-field particles · gpt-4.1-mini

Output generated Cost / run $0.0028 Runtime 18.4s

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

modelgpt-4.1-mini
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime18.4s
tokens in3.6k
tokens out1.3k
cached2.2k
cost / run$0.0028
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

I'll create the full-page index.html with a p5.js flow field particle animation as you described. It will use thousands of particles advected by Perlin noise vector fields, with fading trail effect, and colors shifting over time. Now I'll write the full content in one file.

→ write index.html (3329 bytes)
toolResult

Successfully wrote 3329 bytes to index.html

assistant

I created an index.html file with a full-screen p5.js flow-field particle animation. It features thousands of particles advected by Perlin noise vectors, leaving fading trails with colors continuously shifting over time. Open index.html in a browser to see the animation running full screen. Let me know if you want any customization or additional features!