Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.
Merge branch 'aldegad/edge-fringe': a loop's cells are resampled by coverage and colour apart, so the shrink no longer grows the key's ring and green
Soohong Kim90aa436d7332
diff --cc CHANGELOG.mdindex 4051cbe,019e71f..009173a--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -2,10 -2,9 +2,11 @@@All notable public changes to `sprite-gen` are recorded here. Versions track the `version:` field in `SKILL.md` and `pyproject.toml`.- ## Unreleased-## Unreleased - A loop's cells are scaled without a light rim or a green tint at the edge++## Unreleased - Front and back stills keep their view; a loop's cells are scaled without a light rim or a green tint at the edge+ - **`video-loop` scales its cells with coverage and colour taken apart** (`resize_cell`, used by `build_strip`, so the strip, the GIF, the WebP and `video-cycle-align`'s rebuild all get it). The strip used LANCZOS over premultiplied RGBA, whose negative lobes weigh the colours across an edge against each other and then divide by the edge's low coverage; on a keyed frame, whose edge holds a light rim outside a dark outline and ink with a little of the key's green, a scaled cell drew a lighter rim and greener ink than the frame had. Coverage now keeps LANCZOS's edge, held between the least and the most coverage of the source pixels the colour mixes from (no halo outside the silhouette, no hole inside it); colour is a Hamming mix of premultiplied colour, which has no negative lobe, so every pixel's colour is a mix of the colours under it. On a synthetic outlined figure (`tests/video/test_strip_resample.py`), LANCZOS left 1,462 pixels at 0.97x and 1,750 at 1.03x with a colour none of the source pixels under them had, and none are left now; the strands, 0.5-1.4 px wide, keep LANCZOS's coverage. Colour is no longer sharpened, so a 1 px line inside the body is a little softer when a cell is enlarged. A cell at its own size is copied as it is, as before. [docs/video-pipeline.md](docs/video-pipeline.md).+- **A front or back still keeps its view when redrawn from another picture** (`STILL_VIEW_TEXT["front"]`, `["back"]`, read by `still_view_text`): redrawn from a side picture with the clip's one line, a front still could keep part of the picture's turn — feet frontal, head and chest turned a little toward the side the picture faces. The still sentence now says the whole body and head face the viewer squarely, the chest, hips and toes point straight at the viewer, the face is centred between both ears and it is not turned toward either side even when a reference picture shows the character from another angle; the back one says the same from behind, the face hidden and not looking back over the shoulder. It is used whatever the reference's view (a caller does not always know it). The clip's `VIEW_TEXT` is unchanged.+- Measured on codex `image_gen` (subscription), five humanoid characters, three takes per arm, judged blind on full-resolution crops plus an eye-offset metric: side reference to front, 15 of 15 frontal with the old line (the turn did not reproduce on this model) and 15 of 15 with the new; side reference to back, 15 of 15 straight backs either way; front reference to front, 14 of 15 old and 15 of 15 new. Method: [docs/video-pipeline.md](docs/video-pipeline.md).## v2.18.0 - A walk's jumping frames are remade by RIFE, its jolt is measured, and a direction set shares one cycle