Skip to content

About

๐Ÿ‘พ CLI-only deterministic pixel art, 2:1 isometric architecture, autotile, and animation engine built for AI agents (Antigravity, Claude Code, Codex).

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

305 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

PixelAI-Tools

Deterministic, CLI-only Pixel Art, Animation & Volumetric Sprite-Stacking Studio built for AI Coding Agents

Python 3.10+ 100% CLI License: MIT AI Agent Ready

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.


3D Sprite-Stacked Car Turntable
Fake-3D Sprite Stack
pixelai stack carve
3D Sprite-Stacked House Turntable
Volumetric Architecture
pixelai stack ortho
Animated Monster Walk Cycle
Character & Monster Cycles
pixelai render
Procedural Faceted Gem VFX
Procedural VFX & Gems
pixelai vfx

Portfolio Showcase

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).

1. Volumetric Sprite Stacking (Fake-3D & Articulated Rigs)

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.

Rotating Car Sprite Stack
360ยฐ Turntable GIF
Beveled visual-hull carve + directional lighting
16-Direction Baked Spritesheet
16-Direction Game Sheet
Engine-ready PNG + JSON metadata
Rotating House Sprite Stack
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.html

2. Multi-Animation Creature & Character Packs

Generate complete 13-animation creature packs (walk 4-dir, peck/graze, sleep, emotes, contact sheets, and animated showcase banners) in a single command.

Cow Pack Showcase Banner
Complete Farm Cow Pack (pixelai pack)
Chicken Pack Showcase Banner
Complete Farm Chicken Pack (pixelai pack)
Farmer Walk Farmer Chop Ronin 64x64
Characters & Action Cycles (farmer_walk, farmer_chop, ronin_64x64)
Farmer 4-Direction Sheet
4-Direction Game Spritesheets

3. Architecture, Isometric Buildings & Aesthetic Standard

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 128x128
Farmhouse (128ร—128)
Isometric Cozy Barn
Isometric Barn
Castle External Outline
Default: ext_outline
Castle Pure Lineless
Optional: --lineless

4. Procedural Nature, Foliage & Seamless Autotiles

Organic canopy shading, fruit trees, undergrowth sheets, and Wang-16 seamless terrain autotiles with automated seam verification (pixelai tilecheck).

Oak Tree 128
Oak Tree
Fruit Tree 128
Orchard Tree
Nature Props Sheet
Nature Pack Sheet
Water Grass Autotile
Seamless Autotile

5. Procedural VFX, 2D Bone/IK Rigging & Post-Processing Filters

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
Faceted Gem (vfx gem)
Hellfire VFX
Hellfire (vfx hellfire)
2D IK Bone Bend
2D IK & Spine Bend (rig/bend)
Organic FX
Organic FX (fx)
Cleanup Filter
Orphan Cleanup
Bayer Dither
Bayer Dithering
Directional Rimlight
Rim Lighting
Visual Diff QA
Pixel Diff QA (pixelai diff)

6. Curated Palettes, Bitmap Typography & Blind A/B QA

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).

Curated Palette Swaps
Curated Palette Swaps (dungeon16, cyberpunk16, autumn16, slso8)
Blind A/B QA Sheet
Blind A/B QA (pixelai ab compare)
Bitmap Text CLI
Bitmap Typography CLI (pixelai text)
Bitmap Text JSON Op
In-Sprite UI Label ("op": "text")
Animation Onion-Skinning
Onion-Skinning QA (pixelai inspect --onion)
Measured Bitmap Banner
Pre-Measured Banner (pixelai text --measure-only)

7. 3D SDF Multi-Direction & Procedural Animation (pixelai sdf)

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 Simultaneously Animated 3D SDF Winged Dolphin
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 3

CLI Toolkit Overview

Run 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.

Quickstart

Install

git clone https://github.com/Tolgrim-arch/PixelAI-Tools.git
cd PixelAI-Tools
pip install -e .

Requires Python 3.10+ and Pillow.

Run Your First Commands

# 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.png

AI Agent Integration

PixelAI-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 --help and --json structured 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> or pixelai schema at any time to write valid specs on the first try.

Strengths & Limitations Analysis

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:

Where It Excels (Strengths)

  1. 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.
  2. 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.
  3. 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.
  4. Cozy-RPG Farm Creatures & Chibi Characters (animals_farm.py, human.py, pack)
    • Integrated presets (chicken, cow, human 4-dir) can export 13-animation packs, emotes, and contact sheets in a single CLI command with strict silhouette control (ext_outline / --lineless).
  5. 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.

Where It Struggles (Limitations)

  1. 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.
  2. Unsupported Creature Species (animals_farm.py)
    • Only cow and chicken are fully integrated in the commercial pack pipeline; other species fail explicitly or require manual JSON spec authoring.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

License

MIT โ€” see LICENSE.

About

๐Ÿ‘พ CLI-only deterministic pixel art, 2:1 isometric architecture, autotile, and animation engine built for AI agents (Antigravity, Claude Code, Codex).

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages