Skip to content

Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.

docs(release): keep chroma notes focused on public behavior

Soohong Kima97f5213cf9f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 42e73e3..b48e7eb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,8 +14,8 @@ All notable public changes to `sprite-gen` are recorded here. Versions track the
- Images and videos share one credential reader: the user's Grok subscription login first (`GROK_HOME` supported), even with `XAI_API_KEY` configured. Only an absent login file permits API-credit use; invalid, expired or rejected logins never fall back to it. Image reports expose the auth source and API endpoint. The workflow guide checks the same source and explicitly confirms API-credit billing for either media type. Expired login and request failures stop without agent fallback or automatic image request retries.
- Standalone image-to-video requests are routed by the sprite-gen skill itself; no separate video skill is needed.
-- The flat-border colour that decides the painted key no longer has to balance its keyed channels. Grok paints `#FF00FF` as (216, 46, 147) / (225, 52, 155) / (236, 59, 161) — blue/red ≈ 0.68, under the 0.8 balance the interior family rule (`is_key_family`) demands — so `detect_background_key_rgb` fell back to the declared key and, at ~120 from pure magenta, the whole background survived (2026-09-11 rev3 objects). A border is already background evidence: the new border rule `is_border_key_candidate` (keyed channels lit, unkeyed channels dark and under 35 % of the brightest keyed one — a superset of `is_key_family`) is the one function `detect_background_key_rgb`, `cutout --key auto`, `video-canvas --key` and the `video-frames` residual/subject split classify the border with. The interior rule is unchanged; hot pink (250, 77, 150) and purple (213, 112, 246) inside the subject still survive.
-- The painted key's erase ball is bounded by the background it came from: it erases the pixels that carry the key's hue signature plus whatever inside the ball is 8-connected to them (the antialiased rim), not an isolated look-alike patch inside the subject — hot pink sits 46 from Grok's magenta and would otherwise have been cut out. The declared key's ball stays position-blind. The 96 radius is unchanged.
+- Flat-border key detection accepts imbalanced chroma channels using the shared `is_border_key_candidate` rule in cutout, extraction and video preparation. Interior subject-colour classification remains unchanged.
+- Painted-key removal is limited to the key family and its connected antialiased rim, preserving isolated look-alike colours inside the subject. The declared-key removal radius remains unchanged.
## v2.1.1 - Chroma keying follows the painted background