From 378379807fb4cd751e90808c8363caddb365bcd8 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 11 Nov 2026 06:49:10 -0300 Subject: canim: nothing changes in one frame; the map's space is used; the heap scene at its storyboard's length The motion check counts a third of the one-frame changes it did: the minimap's changes fade, and a register's value, a flag, a role, a pin's names, a tag's note, a backtrace row, a call tree's node and a dump row crossfade where they changed at once. What still fires is named in the README; an encoder's keyframe and the gallery's cuts are exempt by name. No caption stands over twelve seconds or under its reading time. The heap scene is 78 s: what the storyboard does not narrate runs, and each free's line cascades onto its call row (line stepping stops at a breakpoint for that). On the map, leftover space holds the stack continued, dumps round what the registers and the stack point at, open loupes and the key: between 1% and 13% of a map is page, where it was 14% to 42%. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- anim/tools/chart.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'anim/tools/chart.py') diff --git a/anim/tools/chart.py b/anim/tools/chart.py index 720e356..320ba90 100644 --- a/anim/tools/chart.py +++ b/anim/tools/chart.py @@ -57,6 +57,10 @@ motion.REGIONS.update({ "zoom": {**none, **words}, "gallery": {**beside, **words}, }) +# `cut`: the gallery is the catalogue's pages, cut from one to the next (scenes/gallery.zig: 1, 2, 3.6, 6, 8 and +# 10.8 s), not a scene: a page's first frame changes everything at once by design. +PAGES = {60, 120, 216, 360, 480, 648} +motion.EXEMPT["cut"] = lambda name, t, moved: lint.scene == "gallery" and any(abs(t - p) <= 1 for p in PAGES) _regions_for = motion.regions_for scene = lambda video: os.path.basename(video).split("-")[0].split(".")[0] motion.regions_for = lambda video, name: _regions_for(video, name or scene(video)) @@ -84,8 +88,17 @@ def shown(text): text = re.sub(r"\\(.)", r"\1", text.replace("\\n", "")) return len(text.replace("`", "")) +# A scene that opens on the map dives (scenes/list.zig: at 2.5 s, 150 f): the falling map passes under the +# caption, which does not change. Its frames are no caption's arrival or leaving. +DIVES = {"list": (150, 300)} + _lint = motion.lint def lint(names, counts, soft, sizes, fps, ev): + if lint.scene in DIVES and "caption" in names: + a, b = DIVES[lint.scene] + counts, soft = counts.copy(), soft.copy() + counts[a:b, names.index("caption")] = 0 + soft[a:b, names.index("caption")] = 0 out = [line for line in _lint(names, counts, soft, sizes, fps, ev) if line != " none"] said = captions(lint.scene) if lint.scene else None cap = names.index("caption") if "caption" in names else None -- cgit v1.3