oneshotlm
Compare all models on this prompt →

Fireworks · glm-5

Output generated Cost / run $0.0077 Runtime 45.9s

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

modelglm-5
vendorZ.ai · GLM
harnesspi-agent
generated2026-07-22

METRICS

runtime45.9s
tokens in5.6k
tokens out3.0k
cached2.9k
cost / run$0.0077
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 with:
1. Full-screen canvas
2. Click to launch shells
3. Shells explode into particle bursts
4. Gravity affects particles
5. Particles fade over time

Let me create a self-contained HTML file with all the CSS and JavaScript inline.
→ write /workspace/index.html (11422 bytes)
toolResult

Successfully wrote 11422 bytes to /workspace/index.html

assistant
thinking
I've created a complete fireworks display with all the requested features:
1. Full-screen canvas that resizes with the window
2. Click to launch shells from the bottom of the screen
3. Shells travel upward and explode into particle bursts
4. Gravity affects particles as they fall
5. Particles fade over time with trailing effects
6. Automatic fireworks launch periodically
7. Multiple explosion types (circular burst, random burst, double ring)
8. Various color palettes for each firework
9. Glow effects for both shells and particles

The file is complete and self-contained with no external dependencies.

I've created a full-screen fireworks display at `/workspace/index.html`. Here's what's included: **Features:** - **Full-screen canvas** - Automatically resizes with the window - **Click to launch** - Click anywhere to launch a firework shell from the bottom toward your click position - **Realistic physics** - Shells rise with deceleration, particles are affected by gravity and friction - **Particle explosions** - 50-100 particles per burst with three explosion types (circular, random, double-ring) - **Fading trails** - Both shells and particles leave glowing trails that fade - **Multiple color palettes** - 10 different vibrant color schemes randomly selected for each firework - **Auto-launch** - Background fireworks automatically launch periodically - **Glow effects** - Radial gradients create realistic glow around shells and particles **Physics:** - Gravity pulls particles downward - Friction slows particles over time - Particles fade and shrink as they age - Trails follow the motion path Open the file in a browser to see the fireworks display. Click anywhere on the screen to launch your own fireworks!