oneshotlm
Compare all models on this prompt →

Fireworks · qwen3.7-plus

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 · 4 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 single-page web app with a fireworks display. Let me think about what this needs:

1. Full-screen canvas
2. Click to launch shells (rockets that go up)
3. Shells explode into particle bursts
4. Particles affected by gravity
5. Particles fade out over time
6. All in one self-contained index.html file
7. No external resources

Let me design this:

- Canvas covers the full window
- Dark background (night sky)
- Click anywhere on screen → a shell launches from the bottom toward the click point
- Shell travels upward with a trail
- When it reaches the target, it explodes into colorful particles
- Particles spread out in a sphere/burst pattern
- Gravity pulls particles down
- Particles fade out and shrink over time
- Maybe add some sparkle/trail effects

I'll create a particle system with:
- Shell objects: position, velocity, target, trail particles
- Explosion particles: position, velocity, color, life, gravity
- Animation loop with requestAnimationFrame

Let me make this visually impressive with:
- Multiple explosion colors
- Trail effects on shells
- Secondary sparkle effects
- Maybe some random auto-launches too
- Glow effects using canvas compositing

Let me write this out.
write /workspace/index.html (13579 bytes)
toolResult

Successfully wrote 13579 bytes to /workspace/index.html

assistant
thinking
The file has been created. Let me verify it exists and looks correct.

Created `/workspace/index.html` — a fully self-contained fireworks display with: - **Full-screen canvas** with a dark night-sky background and twinkling stars - **Click to launch** shells that arc upward from the bottom toward your click point - **4 explosion types** that randomly vary the burst pattern: - **Spherical** — classic radial burst - **Ring** — circular shell detonation - **Double** — inner + outer layers with different colors - **Willow** — long trailing drops that fall under gravity - **Physics** — gravity pulls particles down, friction slows them, trails follow each particle - **Visual effects** — additive blending (`lighter` compositing), radial glow gradients, rising rocket trails with sparks, explosion flash, shimmer highlights, and particle fade-out - **Auto-launches** fire periodically so the sky stays alive even without clicking - **Touch support** for mobile devices

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

modelqwen3.7-plus
vendorQwen
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Fireworks auto-launch and explode with colorful gravity-affected particle bursts; click also triggers a new firework.

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 motion3.2%
on click3.5%
on drag3.7%
on wheel2.5%
on enter + space2.9%
on arrow keys1.2%
on w/a/s/d2.2%
frame spread16.2 / 255
console errors0
js errors none

METRICS

runtime105.3s
tokens in8.5k
tokens out5.5k
cached0
cost / run$0.0097