oneshotlm
Compare all models on this prompt →

Fireworks · minimax-m2.5

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 the following features:
1. Full-screen canvas
2. Clicks launch shells that explode into particle bursts
3. Gravity-affected particles
4. Fading particles

I'll create a single self-contained HTML file with CSS and JavaScript. Let me build this with:
- A full-screen canvas
- Particle system for fireworks
- Launch shells on click
- Explosions with multiple particles
- Gravity effect on particles
- Fade out effect
- Nice colors and visual effects

Let me write the code.
write /tmp/ws/index.html (11512 bytes)
toolResult

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

assistant
thinking
I've created the fireworks display. Let me verify the file was created correctly and has no syntax errors by checking if it exists.
bash {"command":"ls -la /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 11512 Aug 1 17:44 /tmp/ws/index.html

assistant
thinking
The file has been created. Let me provide a summary of what was created.

I've created a full-screen fireworks display in `/tmp/ws/index.html`. Here's what it includes: **Features:** - **Click to launch** - Click anywhere on the screen to launch a firework shell that rises and explodes - **Gravity-affected particles** - Explosion particles are affected by gravity, causing them to arc downward - **Fading particles** - Particles gradually fade out as they descend - **Color variety** - 12 different color palettes are randomly selected for each explosion - **Trail effects** - Shells leave glowing trails as they rise - **Flash effects** - White flash particles burst on explosion for extra visual impact - **Background stars** - Twinkling stars in the night sky - **Auto-launch mode** - After a few seconds, fireworks will automatically launch periodically - **Dual shells** - Occasionally launches a second shell for more dramatic effect **Visual Effects:** - Semi-transparent background clearing creates motion trails - Particles have drag applied for more realistic physics - Glow effects around particles - Crosshair cursor for aiming 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.5
vendorMiniMax
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Colorful fireworks auto-launch and respond to clicks with vivid gravity-affected particle bursts against a night sky.

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.5%
on click14.6%
on drag12.2%
on wheel9.5%
on enter + space13.7%
on arrow keys17.5%
on w/a/s/d7.4%
frame spread25.8 / 255
console errors0
js errors none

METRICS

runtime131.0s
tokens in10k
tokens out3.0k
cached7.1k
cost / run$0.0035