oneshotlm
Compare all models on this prompt →

Flow-field particles · grok-4.3

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 task is to build a single-page web app in one self-contained file named index.html. It must include CSS in a <style> tag, JS in a <script> tag, all inline. No external resources, CDNs, or network ...
bash {"command":"ls -la"}
toolResult

total 1028 drwxrwxrwx 3 node node 96 Jul 22 16:58 . drwxr-xr-x 1 root root 4096 Jul 22 16:58 .. -rw-r--r-- 1 node node 1034532 Jul 22 16:58 p5.min.js

assistant
thinking
The p5.min.js is present. Now I need to create index.html with a full self-contained single-file web app using p5.js for a full-screen flow-field particle animation with thousands of particles, Perlin...The task is to create a full-screen flow-field particle animation using p5.min.js. It needs thousands of particles advected by Perlin noise vectors, leaving fading trails, with colors shifting over time. It should be a self-contained single-file web app.

I need to write an index.
write index.html (1859 bytes)
toolResult

Successfully wrote 1859 bytes to index.html

assistant
thinking
The file is created. I should verify it exists and is complete.
bash {"command":"ls -la index.html && head -c 200 index.html"}
toolResult

-rw-r--r-- 1 node node 1859 Jul 22 16:58 index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Flow Field</title> <style> html, body { margin: 0; padding: 0; overflow: hidden; background: #000; } canvas { display: block;

assistant
thinking
The file is created and present. It uses the provided p5.min.js, contains self-contained CSS in <style>, JS in <script>, full-screen flow field with Perlin noise, thousands of particles (4000), fading...

index.html created and ready.

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

modelgrok-4.3
vendorxAI · Grok
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Flow-field particle animation with fading colorful trails, animates continuously and shifts hue with input.

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 motion54.6%
on click37.2%
on drag35.9%
on wheel38.7%
on enter + space47.2%
on arrow keys42.3%
on w/a/s/d46.1%
frame spread37.2 / 255
console errors0
js errors none

METRICS

runtime21.2s
tokens in6.1k
tokens out1.5k
cached2.2k
cost / run$0.0117