oneshotlm
Compare all models on this prompt →

Flow-field particles · muse-spark-1.2

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 · 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
write index.html (22481 bytes)
toolResult

Successfully wrote 22481 bytes to index.html

assistant
bash {"command":"ls -lh index.html p5.min.js && head -c 200 index.html"}
toolResult

-rw-r--r--. 1 node node 22K Aug 13 01:29 index.html -rw-r--r--. 1 node node 1011K Aug 13 01:29 p5.min.js <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"> <title>FLOW — Perlin Field</title> <style> *{marg

assistant

Built `index.html` — full-screen Perlin flow-field with fading trails: **Animation:** ~3500 particles (600–6000 slider) advected by 3D Perlin noise vectors (`noise(x*scale, y*scale, zOff)`), `angle = noise * TAU * swirl`. Velocity damped 0.965, speed-limited, with wrapping + random respawns. `zOff` animates continuously for evolving field; second noise octave adds turbulence. Colors in HSB shift over time (`baseHue` drifts via `frameCount * shift`) + palette spread + speed-based brightness/alpha, leaving additive trails via translucent dark rect fade (`trail` slider maps to alpha). **Controls:** Particle count / speed / trail length / noise scale / swirl / color drift, 5 palettes (Nebula/Ocean/Sunset/Mono/Acid), glow/additive toggle, flow-vector overlay, pause/clear/burst/shuffle, collapsible panel. Mouse/touch warps field (curl around cursor), drag injects turbulence, click bursts particles. Uses local `p5.min.js` via `<script src="p5.min.js">` in global instance mode, all CSS/JS inline, no network requests.

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

modelmuse-spark-1.2
vendorMeta
harnesspi-agent
generated2026-08-13

EVALUATION

5/5 working

Beautiful flow-field particle animation with fading trails, color shifts on input, and a working control panel.

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 motion14.1%
on click13.8%
on drag11.5%
on wheel11.0%
on enter + space14.2%
on arrow keys15.2%
on w/a/s/d16.2%
frame spread24.6 / 255
console errors0
js errors none

METRICS

runtime39.7s
tokens in20k
tokens out9.6k
cached13k
cost / run$0.0521