oneshotlm
Compare all models on this prompt →

Flow-field particles · claude-opus-5

Output generated Cost / run $0.0930 Runtime 35.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

modelclaude-opus-5
vendorAnthropic · Claude
harnesspi-agent
generated2026-08-03

METRICS

runtime35.9s
tokens in10.0k
tokens out2.9k
cached7.1k
cost / run$0.0930
Transcript · 6 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
I'm starting to write the HTML file.
→ bash {"command":"ls /tmp/ws"}
toolResult

p5.min.js

assistant
thinking
I'm creating the HTML file to structure the page.
→ write /tmp/ws/index.html (5264 bytes)
toolResult

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

assistant

Created `/tmp/ws/index.html` — full-screen p5 flow field: - Thousands of particles (auto-scaled to viewport, 1.5k–9k) advected by a 3D Perlin-noise vector grid that slowly evolves. - Fading trails via a translucent overlay; `t` toggles infinite trails. - HSB colors drift over time (hue base + speed + position offsets). - Particles wrap edges, respawn on life expiry; drag mouse to attract. - Keys: space pause, `c` clear, `n` new noise field, `t` trails, `h` hide HUD.