From 165bb6c1344b98de7bef1d3c2b72147b4a40797a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 16:05:20 -0300 Subject: canim: the renderer speaks the design language The blocks, their states and the tokens carry the catalogue's names: atoms in ui, chain/reg/slot in rows, insn with its line column, jump lane and annotations (read, write, taken or not, a call with its arguments, a return, a syscall) in disasm, bytes and hexdump with field paper and the reading column, the three splits and relayout in stage, the ties (thread, link and pin, projection, echo). A lens is a band over the whole context, its drawing left and its bytes right. Frames' spans on the stack, each instruction's line and a callee's parameter count come from the tracer. A gallery scene draws every block; the test compares six of its pages with pictures kept in test/gallery, drawn from a recording kept there too. The scenes are ported; the motion checks report no pop and no metronome in any of them. Co-Authored-By: Claude Fable 5.2 --- anim/scenes/syscalls.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'anim/scenes/syscalls.zig') diff --git a/anim/scenes/syscalls.zig b/anim/scenes/syscalls.zig index 1516251..c981e58 100644 --- a/anim/scenes/syscalls.zig +++ b/anim/scenes/syscalls.zig @@ -27,16 +27,16 @@ fn frame(s: *anim.Frame) void { // From main's first call to its last line. var at = canim.cursor(s, rec, rec.lineMoment(6, rec.call("main", 0).enter)); at.journey(.line, rec.lineMoment(10, at.first)); - const split = canim.layout.split.beside; - at.levels = .{ .source_rows = 8 }; + const split = canim.layout.split.subject; + at.levels = .{ .source_rows = 10 }; const ctx = canim.context(s, at, .{ .split = split, .syscalls = true }); // The lens: the kernel's side of each call. - const kernel = canim.crossing(s, .{ .cursor = at, .box = split.lens, .focus = true }); + const kernel = canim.crossing(s, .{ .cursor = at, .stage = ctx.stage, .focus = true }); var says: canim.Narrator = .{}; const t = canim.theme.time; - const joins = canim.ties(s, .{ .cursor = at }); - canim.establish(s, .{ ctx.clock, ctx.source, ctx.disasm, ctx.registers, ctx.stack, ctx.backtrace, kernel, joins }); + const joins = ctx.ties(s); + canim.establish(s, .{ ctx.clock, ctx.registers, ctx.stack, ctx.source, ctx.disasm, kernel, joins }); says.line(s, "A program cannot open a file or reach the screen itself.\nIt asks the kernel, and waits."); // One call a phrase: its caption while nothing moves, then the crossing. -- cgit v1.3