oneshotlm
Compare all models on this prompt →

Fireworks · qwen3.5-9b

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 me to create a fireworks display web app with:
1. Full-screen canvas
2. Clicks launch fireworks shells
3. Shells explode into particles
4. Particles have gravity
5. Particles fade out

I need to create a single self-contained HTML file with:
- No external resources
- CSS in <style> tag
- JS in <script> tag
- Inline, not separate files

Let me write this code:

1. Set up a full-screen canvas
2. Create a Firework class that handles the rocket going up
3. Create a Particle class for the explosion
4. Handle clicks to launch fireworks
5. Add gravity and fading effects
6. Add some nice visual styling

Let me code this up.
write /tmp/ws/index.html (7348 bytes)
toolResult

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

assistant
thinking
Successfully created the index.html file. Let me summarize what I built:

1. A full-screen canvas with black background
2. A Firework class that:
   - Launches from bottom center to target point
   - Tracks coordinates for trailing effect
   - Explodes at target
3. A Particle class that:
   - Explodes in all directions from impact point
   - Has gravity (falls downward)
   - Has friction (slows down)
   - Fades out over time
   - Has trail effect
4. Click/touch events launch fireworks
5. Color scheme uses vibrant HSL colors
6. Uses global composite operations for blending effects

The app is self-contained with no external resources.

Created `index.html` with a complete fireworks display featuring: - **Full-screen canvas** with black background - **Click/touch to launch** fireworks from bottom center - **Firework rockets** that fly upward to target points with trailing effect - **Explosion particles** that: - Explode outward in all directions - Fall under **gravity** - Slow down with **friction** - **Fade out** over time - Leave **trails** for visual effect - **50 vibrant colors** in HSL spectrum - **Canvas trail effect** that slowly clears for smooth motion The fireworks are launched by **click or touch** anywhere on the screen. Open the file in a browser and enjoy! 🔥

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.5-9b
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 partial

Firework bursts appear after wheel and click, but click at center didn't trigger a shell there, only wheel scroll launched one visible burst.

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 click0.0%
on drag0.0%
on wheel0.4%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread7 / 255
console errors0
js errors none

METRICS

runtime21.8s
tokens in5.3k
tokens out2.3k
cached0
cost / run$0.0009