summaryrefslogtreecommitdiff
path: root/anim/scenes/fib.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 18:06:30 -0300
committerGabriel Schneider <[email protected]>2026-11-10 19:01:23 -0300
commite63b0624f57472d40af32a006c32cc47d403b822 (patch)
treeb7295da62acd96bc7aba425720eed95605526693 /anim/scenes/fib.zig
parent318e16181a28725e218121363555580725d6d0d4 (diff)
downloadcomputeranim-e63b0624f57472d40af32a006c32cc47d403b822.tar.gz
computeranim-e63b0624f57472d40af32a006c32cc47d403b822.zip
canim: what the review found; the band as two panels; list and sort by instruction
The first videos were reviewed frame by frame and the catalogue changed with them. A lens is a drawing over the program column and its view over the state column, so the stack keeps six slots, its window on the whole frame. Operands are whole. list and sort are recorded by instruction from main (record --from), so their registers strike, links reach nodes and cells, rows that ran are marked and jumps are drawn. A call's node is a projection of its return address; pins travel and keep their side; a mark covers the bytes that changed, at the element's width; a syscall's result is stored after the kernel returns it and every panel is of one moment; fast passes are veiled; the clock stands still during a step; captions get their reading time and a scene's first step comes by four seconds. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Diffstat (limited to 'anim/scenes/fib.zig')
-rw-r--r--anim/scenes/fib.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/anim/scenes/fib.zig b/anim/scenes/fib.zig
index 27d959f..214f768 100644
--- a/anim/scenes/fib.zig
+++ b/anim/scenes/fib.zig
@@ -44,6 +44,7 @@ fn frame(s: *anim.Frame) void {
// Pacing: the same three lines three times more. Seen once, so
// hurried: down the first branch at a run, to the call that does not call.
+ says.line(s, "Down the first branch: each call the same three lines,\none frame deeper, `n` one less.");
at.hurry(s, .line, rec.lineMoment(5, call(rec, 4).enter), .{});
says.line(s, "`fib(1)` needs no other call. Its answer leaves in `rax`,\nand its frame goes.");
@@ -54,6 +55,7 @@ fn frame(s: *anim.Frame) void {
// The pattern is known: the rest of the tree at a sprint, the tree its
// subject, slowing into the last answers.
at.hurry(s, .line, call(rec, 10).exit.?, .{ .pace = canim.theme.time.sprint });
+ says.line(s, "The last answers come back up, each added to the one\nbefore it: `fib(5)` is 5, in `rax`, back in `main`.");
at.walk(s, .line, call(rec, 0).exit.?);
- s.wait(canim.theme.time.before_cut);
+ says.close(s);
}