oneshotlm
Compare all models on this prompt →

Fireworks · nex-n2-pro

Create a fireworks display on a full-screen canvas where clicks launch shells that explode into gravity-affected, fading particle bursts.

⛨ sandboxed Open in new tab ↗
transcript · 6 messages
user

Create a fireworks display on a full-screen canvas where clicks launch shells that explode into gravity-affected, fading particle bursts.

assistant
thinking
We need respond to user by creating single-page web app index.html in current dir. Need inspect cwd maybe empty. Need write self-contained file with CSS/JS inline, no external. Need ensure canvas fullscreen, clicks launch shells that explode into gravity-affected fading particle bursts. Need end with index.html present. We can just write file. Need maybe include some UI instructions. Need no external resources. Need code robust.

Need produce final concise. But first use tools. Need maybe check current dir? Could write directly. Need maybe no need inspect. But maybe ensure current directory. Use pwd/ls? We'll write.

Need craft index.html. Single page. Full screen canvas. Click launches shells. Particle physics gravity, fading. Maybe supports touch. Canvas resize DPR. Shells launched from bottom to click target with arc. On arrival explode. Use requestAnimationFrame. Add trails. Fullscreen canvas CSS. Particles: positions, velocities, gravity, friction, alpha fade. Sparkles. Sound? no external. Could implement WebAudio optional after user gesture. But no need. Need self-contained.

Need maybe "click/tap anywhere to launch shell". Random colors. Shells: x,y bottom, target, speed, life. Particles include type maybe star, ring, willow. Need click launches shell. Shell travels along quadratic Bezier to target with easing, emits trail. On explosion create particles radial. Gravity affects. Fading. Full-screen. Maybe multiple clicks. Background with gradient.

Need write file. Need ensure no external. Need maybe include prefers-reduced-motion? Not necessary. Need maybe allow keyboard? Could add space random launch.

Need maybe no network. Good.

Let's write index.html.
write /tmp/ws/index.html (11640 bytes)
toolResult

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

assistant
thinking

bash {"command":"ls -l /tmp/ws/index.html","timeout":5}
toolResult

-rw-r--r--. 1 node node 11640 Aug 1 19:59 /tmp/ws/index.html

assistant
thinking

Created `/tmp/ws/index.html` — a self-contained full-screen fireworks canvas app. Click or tap to launch shells; they explode into gravity-affected, fading particle bursts.

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

modelnex-n2-pro
vendorNex AGI
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Fireworks launch and explode into colorful fading particle bursts on click, drag, and Enter/Space; arrows and WASD have no effect as expected.

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 motion0.0%
on click3.6%
on drag5.4%
on wheel0.0%
on enter + space2.5%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread35.9 / 255
console errors0
js errors none

METRICS

runtime32.0s
tokens in4.8k
tokens out4.5k
cached9.1k
cost / run$0.0059