sprite ai
Check Semantic Palette Colors After Compressing an AI Sprite Animation
A compressed sprite animation can look plausible while changing the exact red that a game uses as a palette marker. Size, frame timing, and casual visual approval can all pass. If a color carries meaning, test its value after decoding in the actual game path.
Keep a small semantic swatch fixture
Place a known red, green, and blue in three test cels. Record exact RGBA values and where each swatch should appear. Encode one lossless candidate and one approximate candidate at the delivery resolution. Read the swatches through the target decoder and compare with their intended values.
Choose the compression policy by asset role
Use exact color round trips where the renderer looks up the literal values. For descriptive backgrounds or effects that can tolerate rounding, use an explicit tolerance and review real appearance. Keep the color check separate from the timing test so a correct delay cannot conceal a palette mismatch. Run the final comparison after decoding and before applying a color transform or filtering; those stages require their own test.
FrameSprite’s technical guide and test fixture measures SDL_image decoding a lossy and lossless animated WebP with matching dimensions and holds but different red values in the lossy result.
Prepared by the FrameSprite Workflow Team with AI assistance. Illustrative examples are labeled in the text.