# Particle Effect Frame Generator > Simulate sparks, snow, smoke or confetti as PNG frames and an editable flipbook layer. Set up a seeded particle emitter — shape, rate, burst, lifetime, direction, speed, gravity, wind and drag — and choose how size, color and opacity change over each particle’s life with CSS easing curves. Get a transparent PNG sequence, a contact strip, per-frame particle counts and, for up to 24 drawings, an editable Flipline drawing whose particle layer you can open and draw over. Part of usefulweb.app (https://usefulweb.app/). Part of [Flipline](https://flipline.usefulweb.app/) (ownerApp: flipline). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://fliplineparticleframes.usefulweb.app/ (interactive tool at https://fliplineparticleframes.usefulweb.app/tool) - JSON API: POST https://fliplineparticleframes.usefulweb.app/api/v1/calculate with a JSON object of inputs (schema: https://fliplineparticleframes.usefulweb.app/api/v1/tool) - OpenAPI: https://fliplineparticleframes.usefulweb.app/openapi.json - MCP (Streamable HTTP): https://fliplineparticleframes.usefulweb.app/mcp - tool `flipline_particle_frames` ## Inputs - preset (select): Particle preset - width (integer): Canvas width (px) - height (integer): Canvas height (px) - fps (integer): Frame rate (FPS) - frames (integer): Frames - background (text): PNG background HEX (empty = transparent) - shape (select): Emitter shape - x (number): Emitter centre X (%) - y (number): Emitter centre Y (%) - emitterWidth (number): Emitter width (px) - emitterHeight (number): Emitter height (px) - angle (number): Emitter rotation (degrees) - rate (number): Emission rate (particles per second) - burst (integer): Start burst (particles) - life (number): Lifetime (seconds) - lifeVar (number): Lifetime variation (%) - direction (number): Direction (degrees, 0 = right, 90 = up) - spread (number): Spread (degrees) - outward (boolean): Throw particles away from the shape centre - speed (number): Speed (px per second) - speedVar (number): Speed variation (%) - gravity (number): Gravity (px/s², positive = down) - wind (number): Wind (px/s², positive = right) - drag (number): Drag (per second) - sizeStart (number): Start size (px) - sizeEnd (number): End size (px) - sizeVar (number): Size variation (%) - sizeEase (text): Size easing over life - colorStart (text): Start color HEX - colorEnd (text): End color HEX - colorEase (text): Color easing over life - opacityStart (number): Start opacity (%) - opacityEnd (number): End opacity (%) - opacityEase (text): Opacity easing over life - style (select): Particle look - seed (integer): Random seed - loop (boolean): Seamless loop - prewarm (number): Pre-roll before frame 1 (seconds, no loop) ## Method - Spawning: a start burst at time 0, then one particle every 1/rate seconds. Each particle draws its position on the emitter shape, direction (direction ± spread/2, or away from the shape centre), speed, lifetime and size factor from a seeded mulberry32 stream keyed by seed and particle number, so changing one setting never reshuffles unrelated particles. At most 20000 particles are emitted. - Motion is evaluated in closed form at every frame time t = frame/FPS (plus the pre-roll): without drag p = p0 + v0·a + ½·g·a²; with linear drag k, p = p0 + (g/k)·a + (v0 − g/k)(1 − e^(−k·a))/k, where a is the particle’s age. Gravity points down and wind right, in pixels per second squared. Seamless loops spawn over one loop length and wrap ages by it, so frame N+1 would equal frame 1. - Over life q = age/lifetime, size, opacity and color follow CSS easing curves (the same engine as the Easing Curve tool and Motion Desk): value = start + (end − start)·ease(q); colors mix in linear light. Sizes are clamped to 1–100 px and opacity to 0–1; particles whose centre leaves the canvas are not drawn. - Each particle is one Flipline brush mark: Dot = a single Studio-ink dab, Glow = the four concentric Soft-airbrush dabs. The PNG frames are rasterized from exactly these dabs with deterministic arithmetic (one-pixel anti-aliased edges, normal alpha compositing), so app and tool produce identical files. Editable drawings hold at most 24 drawings, 500 particles per drawing and 2000 marks in total; PNG sequences allow 240 frames, 4000 visible particles per frame and 40 megapixels in total.