vfx
Builds an animated pixel-art effect with PixelLab's VFX workbench (Create
VFX), exports it, and downloads it. PixelLab only offers the workbench as an
MCP tool, with no REST endpoint, so this command talks to PixelLab's MCP
server with the same PIXELLAB_API_KEY. The workbench is a renderer, not a
model: it is free on a subscription and the same recipe renders the
same pixels every time.
pixelkiln vfx presets
pixelkiln vfx parts
pixelkiln vfx --preset explosion --part scorch_mark --out fx/explosion --game-pack
pixelkiln vfx --preset heal_pillar --sprite sprites/hero.png --out fx/hero-heal
pixelkiln vfx --recipe fx/explosion.vfx.json --out fx/explosion-v2
pixelkiln vfx --effect <saved effect id> --out fx/explosion --force
pixelkiln vfx --lib pixelfx --effect fire/torch --out fx/torch
- Every preset and every pixelfx effect is listed, with frame sizes and the command for each, in the effects catalog.
vfx presetsandvfx partsprint PixelLab's current lists: whole-effect presets (explosion, lightning_strike, heal_pillar, portal, aura, and more) and parts to layer on (scorch_mark, spark_burst, stun_stars, rain_streaks, and about 90 others).- Start from exactly one of
--preset <name>,--recipe <file>, or--effect <id>, or from--partalone.--part <name>is repeatable and adds parts on top, in order. --spritebuilds the effect around a character: a local PNG or JPEG, a URL, or a PixelLab reference such ascharacter:<id>:south.--fps <n>sets the frame rate (1–60).--namesets the name saved to your PixelLab "My effects"; it defaults to the preset or the output's file name.--out <base>writes<base>.png(spritesheet),<base>.gif,<base>.json(an Aseprite-style frame atlas pointing at the sheet, with the effect's anchor inmeta.anchor), and<base>.vfx.json.--game-packadds<base>-game.zip: every piece as its own clip (the whole effect, the layers behind and in front of the sprite, each part) plus amanifest.jsonsaying where each plays. Existing files are replaced only with--force.<base>.vfx.jsonrecords the saved effect's id, its edit link on pixellab.ai, the frame facts, the sprite it was built around, and the effect's full recipe. Pass it back as--recipeto render the same effect again; it reuses the recorded sprite unless you pass--sprite.- Every run saves the effect to your My effects, where its sliders can be
moved on pixellab.ai. Pick the changes up with
--effect <id> --force, which exports over the saved effect and keeps its name. --jsonprints the export facts and paths;--dry-runsends nothing.
For effects that need more than presets and parts (your own layers, exact
timing, a projectile you drew), use the vfx_workbench tool from an MCP
client such as Claude Code. Then pull the result into the project with
pixelkiln vfx --effect <id>.
For effects with no account at all, see Local effects with pixelfx below.
Effects around objects
pixelkiln vfx --preset rim_glow --sprite props/kiln.png --out fx/kiln-glow
pixelkiln vfx --preset shield_bubble --sprite object:<id> --out fx/chest-shield
pixelkiln vfx --preset lightning_strike --sprite props/anvil.png --out fx/anvil-strike
--sprite is not limited to characters. The workbench fits the effect to
whatever image it is given. Measured on 17 November 2026, each run free:
- A local 32px PNG of a prop rendered with
rim_glow(64x64, 8 frames, loops),lightning_strike(96x128, 10 frames, plays once), andfirelight(64x64, 8 frames, loops). object:<id>, an object stored in the PixelLab account, rendered withshield_bubble(96x96, 8 frames, loops) with no download first. The object was an 8-direction one and PixelLab chose the view.- Each preset places the sprite itself.
shield_bubblecentred the prop; the other three stood it on the preset's ground line. The record'srecipe.subjectholds the position and alignment used. - A preset's canvas does not shrink to the sprite. A small prop under a 96x128 lightning strike stays small.
- Lighting presets (
firelight,rim_glow,light_sweep) are written for any sprite and show a sample asteroid when given none.firelightchanges only the sprite's own pixels, which is hard to see on a 32px prop. - One
lightning_strikerun failed with PixelLab's "took longer than 120s and was stopped; nothing was saved" and succeeded unchanged on the next try. Nothing is billed either way; run it again.
vfx presets listed 41 presets on that date.
Described effects (paid)
pixelkiln vfx --description "a blue lightning strike that leaves sparks" --out fx/zap
pixelkiln vfx --description "a green healing aura" --artist pro --sprite sprites/hero.png --out fx/heal
pixelkiln vfx --description "a fiery trail behind the robot as it walks" --sprite sprites/walk.png --sprite-frames 8 --out fx/trail
pixelkiln vfx --description "make it red and faster" --effect <effect id> --out fx/zap --force
--description asks PixelLab's VFX artist (POST /vfx) to build the
effect from words instead of the free workbench: it picks the parts, renders
the effect, checks it, and saves it to My effects. It goes over the REST API
and needs no MCP.
--artist lite(the default) or--artist pro, the stronger artist for detailed effects.--spritemust be a local PNG or GIF up to 512×512 a frame; the artist takes pixels, not a URL or acharacter:reference.--preset,--recipe,--part, and--fpsare refused with--description.- An animated sprite. Pass a GIF, or a horizontal PNG strip with
--sprite-frames <n>(2 to 32 equal frames), and the effect is built around every frame, with the sprite's own frame count.--sprite-fps <n>sets how fast the sprite plays (PixelLab uses a GIF's own timing, else 12). A strip must divide evenly into its frames and be at most 1,024 pixels wide, which PixelLab enforces and the command checks first; send a longer animation as a GIF.--sprite-framesis refused with a GIF, which brings its own frames. --effect <id>changes that saved effect in place, with--descriptionsaying what to change. When<base>.vfx.jsonis that effect's record from an earlier run, itsconversationis sent too, which PixelLab prices as a change. Without one, PixelLab prices it as a new effect.- Cost. PixelLab quotes each job and bills on delivery, up to twice the
quote when the effect runs long. Its table: lite 1 generation (3 with a
sprite over 128 px, 5 over 256 px; a change 1–2), pro 6 (8 with a sprite,
14 over 128 px, 28 over 256 px; a change 4–8). The command prints the quote
and the twice-the-quote ceiling and asks first. An animated sprite adds 1
to the lite quote and 1, 2 or 5 to the pro quote by size tier
(measured).
--budget <n>refuses whennis below the ceiling,--yesskips the question, and--dry-runsends nothing. A change prices the saved effect's sprite at the top tier unless you pass--sprite, since its size is not known here. - It writes the same
<base>.png,.gif,.json, and-game.zip(with--game-pack) as the workbench, plus<base>-normals.pngwhen a light in the effect made the sprite's normal map.<base>.vfx.jsonrecords the effect id, edit link, the artist's message, the frame facts, the quote, the bill, and theconversation. It holds no recipe; to get a free, repeatable one, runpixelkiln vfx --effect <id> --out <another base>afterwards.
To plan, lock, and pack effects with the rest of a project's art, declare
them in the manifest instead, with the vfx generator.
A .vfx.json record from this command works there as a recipe.
Local effects with pixelfx
npm i github:patch-gg/pixelfx
pixelkiln vfx effects
pixelkiln vfx --lib pixelfx --effect fire/torch --out fx/torch
pixelkiln vfx --lib pixelfx --effect explosions/small-explosion --palette "#102,#215,#43a,#8cf,#fff" --seed 3 --fps 12 --out fx/boom
pixelkiln vfx --recipe fx/boom.vfx.json --out fx/boom-again
--lib pixelfx renders an effect from
pixelfx, a library of code-drawn
pixel-art effects, on this machine. No key is read, nothing is sent, and
nothing is billed. Its randomness is seeded, so the same recipe and library
version write the same bytes every time.
- pixelfx is not on the npm registry, so PixelKiln does not install it. Install it beside your project with the line above. It is looked for in the working directory first, then beside PixelKiln; a run without it fails with that install line (exit code 7).
vfx effectslists the library's categories and effect ids with each effect's frame size and length;--jsonprints the same as data, with every effect's options and defaults.vfx presets --lib pixelfxis the same list.--effect <category>/<name>picks the effect.--palettereplaces its color ramp with your own, dark to bright, as comma-separated hex colors (quote it:#starts a shell comment); the library resamples a ramp of any length to the steps the effect uses.--seed <n>rolls its randomness differently.--fps <n>(1–60) sets the frame rate, and with it the frame count: simulated effects step at the same rate inside whatever you pick.- An effect's canvas is the library's own and is not resized.
--margin <px>adds transparent pixels on every side, for glow or particles that the canvas would cut off. Without a margin, glow is eased out over the last 8 pixels of the canvas, as the library's own sheets do. --out <base>writes<base>.png(a transparent spritesheet, frames in a row-major grid),<base>.json(an Aseprite-style frame atlas with the effect's pivot inmeta.anchorand the grid inmeta.pixelfx), and<base>.vfx.json. No GIF is written. Existing files are replaced only with--force.<base>.vfx.jsonrecords the library and its version, the effect id, the frame facts, the sheet's SHA-256, and the recipe (effect, fps, margin, options). Pass it back as--recipeto render the same pixels again; no--libis needed, the file says what it is. Flags given with it override the recorded value. A recipe can also carry options the flags do not cover, such asflip,angle,light, or an effect's own, underoptions. If the installed library's version differs from the recorded one, the run says so, because a newer version may draw the effect differently.--dry-runprints the frame facts and writes nothing;--jsonprints the facts and paths.- An effect goes over a character or an object the same way: draw each
frame's top-left at
target − meta.anchor, after the sprite to put it in front or before it to put it behind. A coin spinning above a 64px chest (pickups/coin-spin, pivot 28,48, target 64,62, so the frame lands at 36,14) and aholy/sunburstdrawn behind the same chest are on the website's Effects page. - About 70 of the library's effects (status effects, auras, whole attack
moves) are drawn around its stock character and are refused: PixelKiln has
no way to hand them your sprite yet.
vfx effectsmarks them. - PixelLab's flags (
--preset,--part,--sprite,--description,--game-pack) are refused with--lib pixelfx, and--paletteand--seedare refused without it.--marginworks with--lib pixelfxand--lib codex. These effects are not yet a manifest generator.
pixelfx is MIT licensed, Copyright (c) 2026 Patch and Hugo Duprez; see Third-party notices.
Local effects with pixel-vfx-codex
npm i github:888wing/pixel-vfx-codex
pixelkiln vfx effects --lib codex
pixelkiln vfx --lib codex --effect fireball --out fx/fireball
pixelkiln vfx --lib codex --effect fireball --camera 25d --param tailLength=1.6 --hue 40 --out fx/fireball-iso
pixelkiln vfx --recipe fx/fireball-iso.vfx.json --out fx/fireball-again
--lib codex renders an effect from
pixel-vfx-codex, a second
library of 138 code-drawn effects, on this machine. Like pixelfx it needs no
key, sends nothing and costs nothing, and the same recipe and package files
write the same bytes. It differs from pixelfx in how it draws: each effect is
defined once in a 3D world and rendered through a camera, so one effect has a
side-on look and an isometric one.
- It is not on the npm registry and is not a package with exports, so
PixelKiln does not install it. Install it beside your project with the line
above. It is looked for in the working directory first, then beside
PixelKiln; without it the command stops with that line (exit code 7). Its
files run in a separate
vmcontext, so its global never reaches the process. That is not a security boundary: treat the package as code you run. vfx effects --lib codexlists the effects by category (projectiles, beams, areas, bursts, vortices, shields, summons, domains and more);--jsonadds each effect's parameters with their ranges and defaults.--camera <2d|25d|3d>picks the view.2d(the default) is front-on at 12 frames a second,25dis a fixed isometric view at 20, and3dorbits at 30.--fps <n>(1–60) sets the rate, but each camera steps its effect at its own rate, so asking for more than that only repeats frames.--param name=valuesets an effect's own parameters (repeatable, or comma separated):fireballtakestailLength,sparks,debrisandringSize. A value outside the listed range is refused.--tune name=valuesets a shared knob:size,gain,density,dither,outline,hitstop,shake,flashorsnap.--hue <degrees>turns every color around the color wheel, which is how to recolor an effect: these effects have no palette option, and--seedand--paletteare refused.- Frames are rendered with the diorama and its props off, on transparency,
then cropped to the smallest box that holds every frame and the pivot.
--margin <px>(0–64) adds transparent space around that box. - The effect's own timing is kept, including its hit-stop and pacing, so the frame count is the effect's length times the frame rate, not a fixed number. Every effect is one cast that ends where it began, so the atlas marks it as looping.
--out <base>writes<base>.png,<base>.json(an Aseprite-style atlas with the pivot inmeta.anchor, the world origin the effect is built around: where a projectile lands, the middle of a ground ring) and<base>.vfx.json. No GIF is written. Existing files are replaced only with--force.<base>.vfx.jsonrecords the package version, a short hash of its engine (the package stays at 1.0.0 while its code changes), the effect id, the frame facts, the sheet's SHA-256, and the recipe. Pass it back as--recipe; no--libis needed. If the engine hash differs from the one recorded, the run says so. Flags given with it override the recorded value.--dry-runprints the camera, frame rate and frame count and writes nothing;--jsonprints the facts and paths.- Effects that draw a figure or a diorama (the ultimates' caster, a ground stage) draw only the effect here. They are not yet a manifest generator.
pixel-vfx-codex is MIT licensed and rebuilds work from two other MIT projects; see Third-party notices.
