summaryrefslogtreecommitdiff
path: root/anim/tools/chart.py
diff options
context:
space:
mode:
Diffstat (limited to 'anim/tools/chart.py')
-rw-r--r--anim/tools/chart.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/anim/tools/chart.py b/anim/tools/chart.py
index 1384800..7cc0925 100644
--- a/anim/tools/chart.py
+++ b/anim/tools/chart.py
@@ -45,9 +45,13 @@ def split(drawing, view, source, disasm, slots, backtrace=0):
# and the run's step counter (912 to 934).
words = {"clock": (0, 888, 1656, 46), "caption": (0, 940, 1464, 140), "minimap": (1664, 912, 192, 108)}
none, beside, subject = split(0, 0, 14, 17, 8, 4), split(152, 152, 8, 17, 8), split(296, 200, 10, 9, 6)
+# The `blocks` lens: the graph over the program column, the source alone under it; the disassembly
+# (its view) over the state column, seven rows, the registers and six words under it.
+blocks = {**subject, "view": (976, 48, 880, ph(7)), "source": (64, 356, 880, ph(20))}
+del blocks["disasm"]
motion.REGIONS.update({
"fib": {**subject, **words},
- "sort": {**subject, **words},
+ "sort": {**blocks, **words},
# The band is the calls so far; the disassembly a descent.
"syscalls": {**beside, **words},
"heap": {**subject, **words},
@@ -57,9 +61,9 @@ 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: 3, 6, 9.6, 13, 16 and
-# 19.8 s), not a scene: a page's first frame changes everything at once by design.
-PAGES = {180, 360, 576, 780, 960, 1188}
+# `cut`: the gallery is the catalogue's pages, cut from one to the next (scenes/gallery.zig: 3, 6, 9.6, 13, 16,
+# 19.8, 21 and 24 s), not a scene: a page's first frame changes everything at once by design.
+PAGES = {180, 360, 576, 780, 960, 1188, 1260, 1440}
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]