oneshotlm
Compare all models on this prompt →

Fireworks · minimax-m2

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
The user wants a fireworks display with:
1. Full-screen canvas
2. Click to launch shells
3. Exploding particles affected by gravity
4. Fading particles

I'll create a single self-contained HTML file with CSS and JavaScript inline. Let me build this interactive fireworks simulation.
write /tmp/ws/index.html (10406 bytes)
toolResult

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

assistant
thinking
I've created the fireworks display. Let me verify the file exists and summarize what I built.
bash {"command":"ls -la /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 10406 Aug 1 19:58 /tmp/ws/index.html

assistant
thinking
The file has been created successfully. Let me summarize what I built for the user.

Created `/tmp/ws/index.html` - a fully self-contained fireworks display with: **Features:** - **Full-screen canvas** - Responsive to window size with twinkling star background - **Click to launch** - Click anywhere to fire a shell that arcs upward - **Explosion physics** - Shells explode when reaching the target height with 80-130 particles - **Gravity simulation** - Particles are affected by gravity, curving downward as they fade - **Trails** - Both shells and particles leave fading trails - **Color variety** - Random selection from 15 vibrant firework colors plus white sparklers - **Touch support** - Works on mobile devices too - **Auto-launch** - Three fireworks launch automatically on page load **Visual effects:** - Glowing particles with shadow blur - Semi-transparent background clear for motion blur effect - Twinkling stars in the night sky - Fading trails on all moving elements - Particles slow down gradually (air resistance) Open `index.html` in a browser and click anywhere to launch fireworks!

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

modelminimax-m2
vendorMiniMax
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Fireworks auto-launch and clicking spawns colorful particle bursts with gravity fade; keyboard input has 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 motion8.6%
on click5.9%
on drag0.8%
on wheel4.7%
on enter + space0.7%
on arrow keys0.5%
on w/a/s/d0.8%
frame spread19.4 / 255
console errors0
js errors none

METRICS

runtime23.7s
tokens in9.3k
tokens out2.7k
cached0
cost / run$0.0051