oneshotlm
Compare all models on this prompt →

Fireworks · gemini-3.5-flash-lite

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 · 11 messages
user

Create a fireworks display on a full-screen canvas where clicks launch shells that explode into gravity-affected, fading particle bursts.

assistant
assistant
assistant
assistant
bash {"command":"ls -la"}
toolResult

total 0 drwxr-sr-x. 2 node node 6 Aug 1 17:41 . drwxrwsrwx. 3 root node 16 Aug 1 17:41 ..

assistant
thinking
**Initiating HTML Creation**

I've started by observing that the target directory is empty. My focus is now on crafting the `index.html` file. I'm imagining a visually impressive, feature-rich web app simulating a fireworks display. I'm prioritizing a dark, immersive design; I'm considering a deep night sky background with subtle gradients, a star field, a glowing city silhouette, or a horizon gradient with trails.


**Developing Firework Mechanisms**

I'm now diving into the finer details. I'm focusing on the canvas effect using semi-transparent clearing, ensuring the canvas is fullscreen and responsive. I'm exploring user interaction: clicking or tapping anywhere to launch fireworks from the bottom, or at click coordinates. I'm aiming for multiple firework types, realistic physics (gravity, drag, fading alpha), glowing particles, spark tails, and smoke/glow trails. I'm also planning to incorporate sound effects using the Web Audio API.


**Designing Interactive Controls**

I'm now focusing on the user interface and controls, envisioning a sleek dark glassmorphism style overlay. I plan a collapsible or floating control panel with toggles for auto-launch, a firework style selector, sound, clear screen, fullscreen, and stats display. I'll include an instruction banner. I'm prioritizing an intuitive and enjoyable user experience.


write index.html (26591 bytes)
toolResult

Successfully wrote 26591 bytes to index.html

assistant
bash {"command":"ls -lh index.html"}
toolResult

-rw-r--r--. 1 node node 26K Aug 1 17:42 index.html

assistant

I have created a fully featured, self-contained fireworks display web application in `index.html`. ### Features Included: - **Immersive Full-Screen Canvas**: Uses glowing particle trails with semi-transparent blending (`globalCompositeOperation = 'lighter'`). - **Interactive Shell Launching**: Click or tap anywhere on the screen to launch a firework shell that flies up and explodes at the target coordinates. - **Realistic Physics & Particle Bursts**: Gravity-affected particles, air friction/drag, sparkling tails, and fading alpha. - **Multiple Firework Styles**: - 🌸 **Peony & Chrysanthemum**: Classic spherical bursts. - 🌿 **Golden Willow**: Drooping trail sparks. - 🍩 **Saturn Ring**: Geometric ring bursts. - ⚡ **Cracker Sparkle**: Crackling terminal burst sparkles. - 💖 **Heart**: Heart-shaped particle explosions. - **Web Audio API Sound Synthesizer**: Custom synthesized whistling launch noises and deep lowpass-filtered explosion rumbles (with sound toggle). - **Controls & UI**: - Style selector - Auto-Show mode with speed adjustment slider - Grand Finale button for multiple simultaneous shells - Glassmorphism dark mode UI overlay

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

modelgemini-3.5-flash-lite
vendorGoogle
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Fireworks auto-launch with colorful particle bursts and gravity fall-off; click and drag trigger extra effects like a heart shape.

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

METRICS

runtime79.9s
tokens in23k
tokens out8.7k
cached0
cost / run$0.0286