diff options
Diffstat (limited to 'anim/scenes/gallery.zig')
| -rw-r--r-- | anim/scenes/gallery.zig | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/anim/scenes/gallery.zig b/anim/scenes/gallery.zig index bd363d5..693553e 100644 --- a/anim/scenes/gallery.zig +++ b/anim/scenes/gallery.zig @@ -33,7 +33,8 @@ const Pages = struct { pub fn draw(p: *const Pages, f: *sk.Frame, at: anim.Placed) void { const u: ui.Ui = .{ .f = f, .at = at }; - if (at.t < 1) atoms(u, p) else if (at.t < 2) rowsPage(u, p); + // Each page 3 s: long enough to be looked at. + if (at.t < 3) atoms(u, p) else if (at.t < 6) rowsPage(u, p); } }; @@ -183,12 +184,15 @@ fn atoms(u: ui.Ui, p: *const Pages) void { y = 698; title(u, 64, y, "pin"); - note(u, 140, y, "row; under; a count after three names"); + note(u, 140, y, "row, end; under; a count after three names"); y += 12; u.pinRow(64, y, &.{ "rsp", "rbp" }, region.stack); + // At a view's row's end (a dump has no lane before its addresses). + _ = u.pinEnd(440, y, &.{"rsi"}, region.stack); u.pinRow(64, y + row, &.{ "rax", "rdi", "rsi", "r8" }, region.heap); - u.fill(.{ .x = 400, .y = y - 20, .w = 116, .h = 20 }, theme.color.raised); - u.pinUnder(458, y, &.{ "rax", "rdi" }, region.heap, theme.size.mono.context); + // Clear of the note over it. + u.fill(.{ .x = 520, .y = y - 20, .w = 116, .h = 20 }, theme.color.raised); + u.pinUnder(578, y, &.{ "rax", "rdi" }, region.heap, theme.size.mono.context); y = 698; title(u, 700, y, "bracket"); @@ -322,20 +326,20 @@ fn frame(s: *anim.Frame) void { const joins = ctx.ties(s); const says = canim.caption(s, "The gallery: the frame, at rest. Every panel, the thread,\nthe lens beside it: the list and the bytes it is drawn from."); const panels = .{ ctx.clock, ctx.registers, ctx.stack, ctx.backtrace, ctx.source, ctx.disasm, list, joins, says }; - s.wait(2); + s.wait(6); var all: [panels.len]anim.Animation = undefined; inline for (panels, 0..) |o, i| all[i] = o.fadeIn(); s.play(all, .{ .seconds = 0 }); - // A step at 3 s, its strikes and ties at about 3.6. - s.wait(3 - s.cursor); + // A step at 9 s, its strikes and ties at about 9.6; each state 3 s. + s.wait(9 - s.cursor); at.walk(s, .line, rec.next(.line, rest)); - s.wait(5 - s.cursor); + s.wait(12 - s.cursor); ctx.stage.relayout(s, canim.layout.split.subject); - s.wait(7 - s.cursor); + s.wait(15 - s.cursor); ctx.stage.relayout(s, canim.layout.split.none); - s.wait(9 - s.cursor); + s.wait(18 - s.cursor); near.open(s); - s.wait(9.8 - s.cursor); + s.wait(18.8 - s.cursor); deeper.open(s); - s.wait(11 - s.cursor); + s.wait(21 - s.cursor); } |
