Fireworks
Shape fireworks on a canvas: click to burst the current shape right there, with directions laid out as a disc, heart, ring or five-point star; particles are integrated frame by frame with gravity and drag and fade with their life. Trail length and colour theme are tunable, burst points, radii, particle counts and hues come from a seed (reproducible with the same parameters), and fps is measured.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Shape firework canvas
Click the canvas to burst the current shape right there: directions come from the shape outline, particles are integrated frame by frame with gravity and drag, and the trail length is yours to tune.
- Live particles
- 0
- Peak particles
- 0
- Shells burst
- 0
- Frames drawn
- 0
- Measured fps
- 0
- Elapsed
- 0.0 s
Keyboard: Space bursts one shell at the planned point (click the canvas first for focus), P pauses or resumes.
Live particles: 0 · Shells burst: 0
Live particles, peak, frames and fps are counted per frame: fps = frames ÷ real milliseconds. No audio, nothing uploaded.
Shape plan
Burst points, shapes, radii, particle counts and hues on the canvas all follow this plan (seeded, reproducible with the same parameters).
种子 / Seed: yanhua · 每 1200 ms 一发 · 共 4 发 第 1 发 / burst 1: 形状 circle,爆点 (0.65, 0.31),半径 158.22 px,56 个粒子,色相 5° 第 2 发 / burst 2: 形状 circle,爆点 (0.22, 0.22),半径 113.25 px,91 个粒子,色相 282° 第 3 发 / burst 3: 形状 circle,爆点 (0.37, 0.36),半径 139.58 px,124 个粒子,色相 107° 第 4 发 / burst 4: 形状 circle,爆点 (0.20, 0.18),半径 90.55 px,106 个粒子,色相 26°
What this tool does
- Click the canvas to burst a shape firework right there: directions come from the shape outline, particles are integrated frame by frame with gravity and drag, and brightness fades with life.
- Change the shape to see how the pattern changes: disc, heart, ring and five-point star each spread directions differently while radii and particle counts still come from the seeded plan.
- Tune the trail length and colour theme for wallpapers or video clips: a longer trail stacks more history, and the theme sets each particle’s hue.
Example
Input
seed yanhua · shape circle · one burst every 1200 ms · 4 shells planned
Output
种子 / Seed: yanhua · 每 1200 ms 一发 · 共 4 发 第 1 发 / burst 1: 形状 circle,爆点 (0.65, 0.31),半径 158.22 px,56 个粒子,色相 5° 第 2 发 / burst 2: 形状 circle,爆点 (0.22, 0.22),半径 113.25 px,91 个粒子,色相 282° 第 3 发 / burst 3: 形状 circle,爆点 (0.37, 0.36),半径 139.58 px,124 个粒子,色相 107° 第 4 发 / burst 4: 形状 circle,爆点 (0.20, 0.18),半径 90.55 px,106 个粒子,色相 26°
Real output of the “Shape plan” card below the canvas: burst points are canvas fractions, radii are pixels, particle counts are integers and hues are HSL angles. Every burst on the canvas follows this plan.
Frequently asked questions
How do I use it?
Click the canvas to burst the current shape at that spot; switch “Auto play” on to fire on the rhythm. Shape, colour theme, gravity, drag and trail length all live in the control panel and change the picture immediately.
Does the keyboard work?
Yes. Click the canvas (or Tab to the board) for focus: Space or Enter bursts one shell from the current plan and P pauses or resumes.
Can the same show be reproduced?
Yes. Burst points, radii, particle counts, hues and shape order all come from the seed (xorshift128), so the same seed, shape and rhythm always give the same plan; each particle direction comes from the deterministic shape outline with seeded speed jitter, so the pattern is stable too.
Are the numbers real, and what does this not do?
Live particles, peak, frames and measured fps are counted per frame (fps = frames ÷ real milliseconds) and pausing really freezes the frame count. There is no audio, nothing is uploaded, and this is not a 3D or physics-engine grade simulator.
Keywords:fireworks