summaryrefslogtreecommitdiff
path: root/anim/scenes/list.zig
diff options
context:
space:
mode:
Diffstat (limited to 'anim/scenes/list.zig')
-rw-r--r--anim/scenes/list.zig8
1 files changed, 3 insertions, 5 deletions
diff --git a/anim/scenes/list.zig b/anim/scenes/list.zig
index 5f2c843..53df4d5 100644
--- a/anim/scenes/list.zig
+++ b/anim/scenes/list.zig
@@ -31,13 +31,11 @@ fn frame(s: *anim.Frame) void {
// The idea is the subject: the lens a size up, the nodes over the bytes they are.
const split = canim.layout.split.subject;
const ctx = canim.context(s, at, .{ .split = split, .quiet = true });
- const lens = split.lens;
- const list = canim.nodes(s, .{ .cursor = at, .box = .{ .x = lens.x, .y = lens.y, .w = lens.w, .h = 192 }, .root = "head", .track = &tracked, .focus = true });
- const bytes = canim.hexdump(s, .{ .cursor = at, .box = .{ .x = lens.x, .y = lens.y + 204, .w = lens.w, .h = lens.h - 204 }, .base = rec.allocations[0].ptr - 16 });
+ const list = canim.nodes(s, .{ .cursor = at, .stage = ctx.stage, .root = "head", .track = &tracked, .quiet = true });
var says: canim.Narrator = .{};
- const joins = canim.ties(s, .{ .cursor = at });
- canim.establish(s, .{ ctx.clock, ctx.source, ctx.disasm, ctx.registers, ctx.stack, ctx.backtrace, list, bytes, joins });
+ const joins = ctx.ties(s);
+ canim.establish(s, .{ ctx.clock, ctx.registers, ctx.stack, ctx.source, ctx.disasm, list, joins });
says.line(s, "A list is nodes on the heap, each holding the address of the next.\nReversing it moves no node: it rewrites every `next`.");
// Three names are set up, then the first trip round the loop, in full.
at.walk(s, .line, rec.lineMoment(20, rec.lineMoment(24, reverse.enter)));