Deterministic, CLI-only Pixel Art, Animation & Volumetric Sprite-Stacking Studio built for AI Coding Agents
Generate production-ready sprites, multi-animation creature packs, isometric buildings, procedural nature, VFX, 2D bone rigs, and rotating fake-3D voxel sprite stacks from a single prompt.
Fake-3D Sprite Stack pixelai stack carve |
Volumetric Architecture pixelai stack ortho |
Character & Monster Cycles pixelai render |
Procedural VFX & Gems pixelai vfx |
Every asset below is generated 100% deterministically via CLIโno external image-diffusion artifacts, no blurry upscaling, and strict adherence to crisp pixel-art readability (Lineless Interior + 1px External Silhouette Outline by default, or pure --lineless on demand).
Carve 4-view orthographic sheets (TOP, SIDE, FRONT, BACK) into horizontal voxel slice strips with smoothed 3D normals, auto-detected emissive masks, PBR material channels, 16-direction baked spritesheets, turntable GIFs, and standalone HTML5 viewers.
|
360ยฐ Turntable GIF Beveled visual-hull carve + directional lighting |
16-Direction Game Sheet Engine-ready PNG + JSON metadata |
Isometric / Fake-3D Building Auto-emissive windows & normal maps |
# Carve a 4-view sheet into slice strip + normals + emissive + materials + 16-dir sheet + HTML5 viewer
pixelai stack ortho car -o car_views.png --width 16 --depth 24 --height 14 --scale 4
pixelai stack carve car_views.png -o car_slices.png --slices 14 --bevel 1 --top-nose auto \
--normals car_normals.png --emissive car_emissive.png --materials car_mat.png \
--bake car_16dir.png --directions 16 --gif car_spin.gif --html car_viewer.html
# Export a multi-part articulated rig (tank turret, hinged chest, or rotorcraft)
pixelai stack rig tank -o out/tank_rig --html out/tank_rig/viewer.htmlGenerate complete 13-animation creature packs (walk 4-dir, peck/graze, sleep, emotes, contact sheets, and animated showcase banners) in a single command.
|
Complete Farm Cow Pack ( pixelai pack)
|
Complete Farm Chicken Pack ( pixelai pack)
|
|
Characters & Action Cycles ( farmer_walk, farmer_chop, ronin_64x64)
|
4-Direction Game Spritesheets |
PixelAI-Tools enforces a modern pixel-art aesthetic: Lineless Interior + 1px External Silhouette Outline (ext_outline) by default, with pure --lineless available for painterly styles.
|
Farmhouse (128ร128) |
Isometric Barn |
Default: ext_outline
|
Optional: --lineless
|
Organic canopy shading, fruit trees, undergrowth sheets, and Wang-16 seamless terrain autotiles with automated seam verification (pixelai tilecheck).
|
Oak Tree |
Orchard Tree |
Nature Pack Sheet |
Seamless Autotile |
Generate animated VFX (gem, hellfire, fire-breath, nova-smoke, beams, flame, smoke, flow), deform any PNG with 2D bone/IK rigs (pixelai rig, pixelai bend), and polish sprites with composable pixel-art filters (pixelai filter).
|
Faceted Gem ( vfx gem)
|
Hellfire ( vfx hellfire)
|
2D IK & Spine Bend ( rig/bend)
|
Organic FX ( fx)
|
|
Orphan Cleanup |
Bayer Dithering |
Rim Lighting |
Pixel Diff QA ( pixelai diff)
|
Swap sprites across 14+ built-in palettes (pixelai palette search|swap), render crisp 3x5 / 5x7 bitmap typography for UI and itch.io banners (pixelai text), surgically patch pixels (pixelai grid read|patch), and prevent visual regressions with randomized blind A/B sheets (pixelai ab compare|reveal).
Model complex organic creatures and props once in 3D Signed Distance Fields (capsule, ellipsoid, box, smooth_union, mirror_x, paint) with per-part sinusoidal animate blocks, then automatically render 4-, 8-, or 16-direction animated spritesheets with 100% silhouette, volume, and lighting consistency.
![]()
8-Direction Simultaneous Animation (8 dirs ร 6 frames = 48 frames) โ pixelai sdf specs/winged_dolphin_sdf.json --directions 8 --frames 6 --all-dirs
# Render an 8-direction (or 16-direction) animated spritesheet + simultaneous multi-dir showcase GIF
pixelai sdf specs/winged_dolphin_sdf.json --directions 8 --frames 6 --all-dirs \
-o dolphin_8x6.png --gif dolphin_8dir_animated.gif --fps 8 --contact-scale 3Run pixelai --help or pixelai <command> --help for full built-in documentation.
| Category | Subcommands | What It Does |
|---|---|---|
| Core Rendering | render, validate, schema, extract |
Render deterministic PNGs, spritesheets & GIFs from JSON specs; embed/extract specs inside PNG metadata. |
| Volumetric 3D | stack ortho, stack carve, stack bake, stack view, stack rig |
4-view orthographic voxel carving, slice strips, normals, emissive, PBR materials, 16-dir sheets, turntable GIFs, articulated rigs & HTML5 viewers. |
| Animation & Rigging | rig, bend, gif, pack-frames, unpack, parallax, composite |
2D bone/IK rigging, spine wave deformation, frame packing/unpacking, parallax scrolling, and multi-layer compositing. |
| VFX & Polish | vfx, fx, filter, palette |
Procedural VFX/gems, reusable motion FX (sheen_sweep, wind_sway, aura_glow), pixel filters, and hue-shifted color ramps. |
| Reference & Style DNA | style, pixelate, normalize |
Extract Style DNA from reference images, pixelate photos/art, and recover 1:1 native pixel grids from upscaled/AI images. |
| Quality Assurance & Packs | pack, showcase, qa, inspect, diff, tilecheck, uicheck, sheet |
One-command animation packs, contact sheets, 11-point sprite QA, pixel-level diffing, Wang-16 tile seam checks, and 9-slice UI verification. |
git clone https://github.com/Tolgrim-arch/PixelAI-Tools.git
cd PixelAI-Tools
pip install -e .Requires Python 3.10+ and Pillow.
# Discover all commands and op primitives
pixelai --help
pixelai guide --list
# Generate a rotating fake-3D car + 16-dir spritesheet + interactive viewer
pixelai stack ortho car -o car_views.png
pixelai stack carve car_views.png -o car_slices.png --bake car_16dir.png --gif car_spin.gif --html car_viewer.html
# Generate an animated procedural gem
pixelai vfx gem -o gem.gif --frames 16 --scale 4
# Inspect any sprite for bounding box, colors, islands, and edge quality
pixelai inspect farmhouse_128x128.pngPixelAI-Tools is built from the ground up for autonomous AI coding agents (Claude Code, OpenAI Codex, Google Antigravity / Gemini CLI).
- Self-Documenting CLI: Every command exposes
--helpand--jsonstructured output so agents never need to guess flags or parse prose. - Built-in Agent Skills (
skills/): Dedicated domain skills cover core rendering, isometric/top-down buildings, characters, creatures, foliage, UI/HUD, tilesets, VFX, palettes, export QA, and volumetric sprite stacking (skills/pixelai-sprite-stack/with Godot 4, Unity, and Web Canvas 2D runtime recipes). - Live Guide: Agents can query
pixelai guide --op <name>orpixelai schemaat any time to write valid specs on the first try.
Based on the codebase (pixelai/) and visual/QA results (GENERATION_QUALITY.md, reports/commercial_catalog.json), PixelAI-Tools has a clear profile of where it excels and where it struggles:
- Volumetric Sprite Stacking & Fake-3D Vehicles/Props (
stack_core.py,stack_render.py,stack_rig.py)- Carving 4-view orthographic sheets (
TOP,SIDE,FRONT,BACK) into beveled voxel slice strips, 16-direction baked spritesheets, normal/emissive/PBR maps, and turntable GIFs produces crisp, consistent, engine-ready results.
- Carving 4-view orthographic sheets (
- 2:1 Isometric Architecture & Modular Buildings (
iso.py,building.py,architecture.py)- Deterministic bevels, eave shadows, gable/pyramid roofs, and runtime metadata (origin, y-sort, entrance, collision polygons) make buildings and cozy-RPG structures one of its strongest outputs.
- Parametric RPG Items, Gems & Procedural VFX (
items.py,vfx_gem.py,fx.py)- Faceted gems, potions, swords, shields, lanterns, and post-process motion FX (
sheen_sweep,sparkle_glint,aura_glow,wind_sway) are clean, readable at 16ร16/24ร24/32ร32, and loop seamlessly.
- Faceted gems, potions, swords, shields, lanterns, and post-process motion FX (
- Cozy-RPG Farm Creatures & Chibi Characters (
animals_farm.py,human.py,pack)- Integrated presets (
chicken,cow,human4-dir) can export 13-animation packs, emotes, and contact sheets in a single CLI command with strict silhouette control (ext_outline/--lineless).
- Integrated presets (
- Deterministic QA, Grid Recovery & Style Normalization (
grid_detect.py,grid_reconstruct.py,pixelate.py,tileqa.py)- Strong tooling for recovering 1:1 native pixel grids from upscaled images, checking Wang-16 tile seams, and inspecting islands, jaggies, and loop-seam deltas.
- Freeform / Non-Chibi Humanoid Anatomy & Dynamic Poses (
human.py,bone_rig.py)- Characters are tied to fixed chibi proportions and a single clothing family; 2D bone/IK rigging deforms flat pixel regions, which can introduce pixel tearing or silhouette artifacts on large rotations.
- Unsupported Creature Species (
animals_farm.py)- Only
cowandchickenare fully integrated in the commercial pack pipeline; other species fail explicitly or require manual JSON spec authoring.
- Only
- Seamless Autotiles & Periodic Material Tiling (
materials.py,tileqa.py)- Bounded material samples (rock, soil, grass, water) use clustered motifs rather than true periodic/seamless edge synthesis, so arbitrary material patches are not automatically seamless autotiles.
- Complex Multi-Frame Character Animation via Raw JSON Specs
- Without a 3D skeletal/voxel rig, animating custom characters frame-by-frame in pure 2D JSON ops is verbose and harder to keep volumetrically consistent across angles.
- Complete UI Screens & Text Layout (
ui.py,nine_slice.py)- Generates individual 9-slice panels, buttons, slots, and bars, but does not provide a full UI layout engine or rich text rendering.
- GIF Alpha & Commercial Review Gate (
GENERATION_QUALITY.md)- PNGs preserve partial shadow alpha, whereas GIF exports are limited to binary transparency; several commercial sheets remain diagnostic fixtures rather than final approved deliverables.
MIT โ see LICENSE.