sprite ai
Preserve Cutout Transparency When Recoloring a Keyed Sprite
An AI cleaning or recoloring step may touch a color that a legacy sprite uses as its transparency key. If the RGB values change before the key is resolved, an invisible border can become visible even though no new pixels were painted deliberately.
Test the key on the final delivered representation
Use a red center surrounded by a magenta key color. Recolor that magenta to a conspicuous blue in a disposable version. Compare the rendered borders over a contrasting background. In the alpha-capable path, resolve the key into coverage before recoloring and require the border to remain clear. In a key-only delivery, intentionally preserve a consistent unused key and test it in the actual destination renderer.
The FrameSprite technical guide and test fixture measures the different outcomes after replacement in a keyed image and an alpha-converted control. Record whether the receiver wants a color key or an alpha channel. Diff the silhouette separately from RGB so a newly visible border does not blend into a background of the same blue.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.