sprite ai
Give an AI sprite handoff separate raw and rendered export tests
An AI sprite may be colorized by the game after generation. The production team might need the neutral source cell for future recoloring and a rendered preview with the current effect. Flame 1.38.2's Sprite.toImage returns the selected source art. It doesn't bake a runtime paint filter into those pixels.
Give the two export paths separate contracts and filenames. Save a neutral cell when the asset is meant to receive its color at runtime. Produce the preview by drawing the sprite through the intended rendering path and encoding the resulting image. If the handoff includes both, identify which file game code should load so a baked preview cannot silently replace the neutral texture.
Exercise the paths with a white shape, one transparent corner and a saturated green filter. After decoding both PNGs, sample the same opaque point. The neutral result should still be white, the intended preview green, and the three transparent corner color channels can be ignored where alpha is zero. Verify expected alpha at both points. technical guide and test fixture establishes this extraction-versus-rendering difference with a native fixture and a PNG round trip.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.