Controlled Pixel Simulation Source Asset: Crypt Knight Attack Updated 2026-11-25

Indexed Pixel Art Grids vs Simulated Bilinear Downscaling

Direct answer: Continuous high-resolution image generators emit anti-aliased frames that must be resized down to game-ready sprite dimensions, introducing mixels, palette bloat, and semi-transparent alpha halos. On real starter asset Crypt Knight Attack (24x24), Celgrid's native indexed matrix uses exactly 11 colors and 0 semi-transparent fringe pixels, whereas a controlled Pillow downscale simulation (256px bicubic upscale, Gaussian blur r=2.2, and bilinear downscale back to 24x24) inflates the exact same frame to 280 blended RGBA colors (25.5x bloat) and 262 alpha-halo pixels. This controlled simulation illustrates resampling artifacts rather than benchmarking a specific third-party diffusion model.
Side-by-Side 1x, 2x & 11x Simulation

Exact pixels measured programmatically from Crypt Knight Attack (24x24)

Native Indexed Colors11 exact
Simulated Bilinear Colors280 (25.5x)
Native Alpha Halos0 px
Simulated Alpha Halos262 px
Side-by-side 1x, 2x, and 11x comparison of Celgrid native indexed Crypt Knight Attack sprite with 11 exact colors versus a simulated 256px blurred bilinear downscale showing 280 blended RGBA colors and 262 alpha halos
Controlled resampling simulation on Celgrid starter asset 9ff39b5dd667: Left shows the exact native 24x24 indexed pixel grid scaled 11x nearest-neighbor alongside true 1x and 2x previews (11 locked RGBA colors, 0 semi-transparent pixels). Right shows the exact same silhouette passed through a simulated 256px bicubic upscale, Gaussian blur (r=2.2), and bilinear downscale back to 24x24, producing 280 blended RGBA values and 262 semi-transparent fringe pixels.
Architectural Breakdown

Three reasons native indexed matrices beat post-hoc pixelation

1. Exact Palette Locking

Every pixel stores an integer index 0..N mapped to a locked hex palette (Sweetie 16, Endesga 16, Dungeon Apollo, PICO-8, or custom). Index 0 is mathematically guaranteed RGBA (0,0,0,0) — zero dirty background halos.

2. Cluster Discipline & 1px Readability

At 16x16 or 24x24, a single misplaced pixel breaks an eye or sword edge. Celgrid's Pass 1 (Silhouette) and Pass 2 (Cluster Shading) build intentional contiguous color clusters instead of noisy averaged blocks.

3. Contact-Sheet Vision Critique

Pass 3 renders both a zoomed gridded view and a true 1x game-scale preview (plus an animated contact sheet across all frames) so Claude Vision catches foot slide, proportion drift, or silhouette gaps before the sprite lands in your library.

Engineering Checklist

Native Indexed Matrix vs Simulated Bilinear Downscaling in Game Engines

Engine RequirementCelgrid Native Indexed GridSimulated Bilinear Downscale
Color count on 24x24 sprite11 exact locked colors280 blended RGBA colors (breaks shader palette swaps)
Semi-transparent outline fringe0 pixels (clean binary alpha)262 halo pixels (visible grey/dark seam on bright tiles)
Pixel uniformity (no mixels)100% uniform 1x1 integer cellsIrregular blurred transitions under integer zoom
Manual pixel editabilityInstant 1-click color replace and pixel paint (0 cr)Requires re-indexing, halo cleanup, and hand redrawing in Aseprite
Turnkey engine importGodot 4 .tres/.tscn, Unity C#, Phaser 3 JSONManual slicing, quantization, and pivot alignment
Direct answers

Indexed Pixel Art vs Bilinear Downscaling FAQ

What are mixels in AI-generated pixel art?

Mixels (mixed pixels) occur when a sprite contains blocks of inconsistent physical sizes (for example 1x1, 1.5x1, and 2x2 squares inside one frame). They happen when high-resolution continuous images are downscaled or transformed with bilinear or bicubic resampling rather than drawn on a discrete integer grid.

How was the side-by-side resampling comparison on this page measured?

We took Celgrid's real starter sprite Crypt Knight Attack (24x24) directly from the starter catalog (11 exact RGBA colors, 0 semi-transparent edge pixels) and ran a controlled Pillow resampling simulation: 256px bicubic upscale, Gaussian blur (radius 2.2), and bilinear downscale back to 24x24. That simulation produced 280 blended RGBA colors (25.5x bloat) and 262 alpha-halo pixels. It demonstrates resampling contamination reproducibly rather than benchmarking a specific third-party diffusion model.

How does Celgrid prevent downscale blur at generation time?

Celgrid synthesizes discrete integer index grids directly on a locked palette (Pass 1 Silhouette -> Pass 2 Cluster Shading -> Pass 3 Vision Self-Critique on a rendered 1x + zoomed contact sheet), so blurry intermediate colors can never enter the sprite matrix.

Do I still need Nearest-Neighbor filtering in Godot, Unity, or Phaser?

Yes. Native indexed pixels stay crisp only when the game engine samples textures with Nearest / Point filtering and uncompressed RGBA. Celgrid pre-wires Nearest filtering inside its Godot 4 .tscn, Unity C# importer, and Phaser 3 setup.

See native indexed grids live in Studio

Open Crypt Knight Attack or any of the starter sprites at 1x and 8x zoom, edit pixels free, and export straight to Godot 4, Unity, or Phaser.