From 9ac990f4952e0c4357c5dcca0d48e23c5df0fb6e Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 12:15:10 -0300 Subject: anim: scripts drive the player's deck sketchbook's stock player now keeps its playhead in an anim.Deck, so the scripts set deck.t and deck.playing where they set t and playing. anim.Frame has no clock field any more: the two cursor tests stop setting it. (A paused playhead set past the end holds the end, as it did: the player that looped it back to 0 was fixed in sketchbook.) Verified zig build test in anim: 203/203 steps; scene durations and play counts unchanged against the old library's screenshots. --- anim/test/recordings.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'anim/test/recordings.zig') diff --git a/anim/test/recordings.zig b/anim/test/recordings.zig index dea5b65..df3508e 100644 --- a/anim/test/recordings.zig +++ b/anim/test/recordings.zig @@ -88,7 +88,7 @@ test "a walked step is as long as what it changed: fire, a slot a level, the hol }; var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); defer arena.deinit(); - var frame: anim.Frame = .{ .t = 0, .clock = 0, .in = undefined, .pointer = .{ 0, 0 }, .arena = arena.allocator() }; + var frame: anim.Frame = .{ .t = 0, .in = undefined, .pointer = .{ 0, 0 }, .arena = arena.allocator() }; scene.frame(&frame); const t = canim.theme.time; // main's line calls fib(5): its two registers (rdi, rsp) 6 f apart, @@ -118,7 +118,7 @@ test "under tied a step goes cause to effect: the touch, the word, rsp's pin, th }; var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); defer arena.deinit(); - var frame: anim.Frame = .{ .t = 0, .clock = 0, .in = undefined, .pointer = .{ 0, 0 }, .arena = arena.allocator() }; + var frame: anim.Frame = .{ .t = 0, .in = undefined, .pointer = .{ 0, 0 }, .arena = arena.allocator() }; scene.frame(&frame); const f = 1.0 / 60.0; // fib(5)'s `call fib` (by instruction): the touch to the free word over rsp 18 to 30, the return -- cgit v1.3