diff options
Diffstat (limited to 'anim/scenes/fib.zig')
| -rw-r--r-- | anim/scenes/fib.zig | 4 |
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); } |
