oneshotlm
Compare all models on this prompt →

Fireworks · minimax-m2

Output generated Cost / run $0.0051 Runtime 23.7s

Prompt for this run

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 ↗

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

METRICS

runtime23.7s
tokens in9.3k
tokens out2.7k
cached0
cost / run$0.0051
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!