Skip to content

Sprite Consistency Across Frames: Anti-Flicker Workflow

Keep animation frames visually stable by locking palette, edge treatment, and per-frame detail budget before conversion.

Grid, file size, and color controls

For icons, start with a 16×16 or 32×32 Target grid and the same file size. The logical grid is independent of source resolution. File sizes can be whole-number multiples of that grid; Preview zoom changes only the display. Check the 1× actual-size preview on light and dark backgrounds.

Keep full image adds transparent padding. Center crop keeps the centered square and shows the removed edges. Free pixel multiplier depends on source size: each grid dimension is the source dimension divided by the multiplier, rounded up. Multiplier numbers in older examples are starting points for a particular source, not universal icon settings.

Nearest, Floyd-Steinberg, and Ordered use the selected fixed palette. maxColors only controls Median cut, which creates adaptive colors from the image and ignores the fixed palette. PNG preserves exact colors and alpha. JPEG uses white behind transparency; JPEG/WebP compression can change colors.

Why sprites flicker after conversion

When each frame is processed with slightly different color clusters, edges jump. This creates visual flicker even if animation timing is correct.

  • Frame-by-frame auto palette shifts are the #1 cause
  • Dithering patterns can move unpredictably between frames
  • Different crop boxes also cause perceived jitter

Stable pipeline for animation sets

Use this order to keep style consistent across every frame.

  • Normalize all frames to same canvas and alignment first
  • Pick one palette and one pixel size for the full sequence
  • Process key frame, review, then batch remaining frames with identical settings

Frame QA checklist

Review at 100% and 200% zoom before exporting the final sheet.

  • No edge crawl on idle frames
  • No random bright speckles on shadow areas
  • Silhouette thickness stays stable during motion