oneshotlm
Compare all models on this prompt →

Fireworks · qwen3.5-27b

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 me to create a single-page web app with a fireworks display. Let me break down the requirements:

1. Full-screen canvas
2. Clicks launch shells that explode into particle bursts
3. Particles should be affected by gravity
4. Particles should fade over time
5. Everything in one self-contained index.html file (CSS in <style>, JS in <script>)
6. No external resources or network requests

Let me create this step by step:

1. HTML structure with a full-screen canvas
2. CSS to make it full screen and remove scrollbars
3. JavaScript for:
   - Canvas setup and animation loop
   - Firework shell class (launches from bottom, goes up)
   - Particle class (explodes from firework position, affected by gravity, fades)
   - Click handler to launch fireworks
   - Auto-launch some fireworks for visual interest

Let me write this out:
write /tmp/ws/index.html (8871 bytes)
toolResult

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

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

-rw-r--r--. 1 node node 8871 Aug 1 19:57 /tmp/ws/index.html

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

Created `index.html` with a full-screen fireworks display featuring: **Features:** - **Click to launch** - Click anywhere on the canvas to fire a shell to that location - **Touch support** - Works on mobile devices too - **Gravity physics** - Particles fall naturally after explosion - **Air resistance** - Particles slow down realistically (drag effect) - **Fading particles** - Each particle fades out over time at varying rates - **Trails** - Shells leave fading trails as they ascend - **Glow effects** - Particles have a subtle glow for visual impact - **Twinkling** - Particles twinkle as they fade - **Auto-launch** - Periodically launches random fireworks if screen is quiet - **Multiple colors** - Vibrant HSL color palette with sparkle accents Open the file in a browser and click anywhere to start the show!

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-27b
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Auto-launching fireworks display with gravity-affected fading particle bursts; click launches an additional shell; visually appealing.

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 motion6.6%
on click7.8%
on drag4.6%
on wheel6.6%
on enter + space4.9%
on arrow keys3.8%
on w/a/s/d4.1%
frame spread15.4 / 255
console errors0
js errors none

METRICS

runtime29.8s
tokens in9.6k
tokens out2.6k
cached0
cost / run$0.0059