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/gallery.script | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'anim/test/gallery.script') diff --git a/anim/test/gallery.script b/anim/test/gallery.script index 461f100..43f1d6e 100644 --- a/anim/test/gallery.script +++ b/anim/test/gallery.script @@ -2,40 +2,40 @@ # every channel of every pixel within 24 of the picture, above the player's own line # (its timings change from run to run). A screenshot is saved on the frame after. frames 2 -console set playing false -console set t 1.5 +console set deck.playing false +console set deck.t 1.5 screenshot {dir}/atoms.png frames 1 expect-same-screenshot {dir}/atoms.png test/gallery/atoms.png 24 0 0 1920 1040 -console set t 4.5 +console set deck.t 4.5 screenshot {dir}/rows.png frames 1 expect-same-screenshot {dir}/rows.png test/gallery/rows.png 24 0 0 1920 1040 -console set t 7.4 +console set deck.t 7.4 screenshot {dir}/rest.png frames 1 expect-same-screenshot {dir}/rest.png test/gallery/rest.png 24 0 0 1920 1040 -console set t 9.6 +console set deck.t 9.6 screenshot {dir}/step.png frames 1 expect-same-screenshot {dir}/step.png test/gallery/step.png 24 0 0 1920 1040 -console set t 13.4 +console set deck.t 13.4 screenshot {dir}/subject.png frames 1 expect-same-screenshot {dir}/subject.png test/gallery/subject.png 24 0 0 1920 1040 -console set t 16.4 +console set deck.t 16.4 screenshot {dir}/none.png frames 1 expect-same-screenshot {dir}/none.png test/gallery/none.png 24 0 0 1920 1040 -console set t 19.8 +console set deck.t 19.8 screenshot {dir}/loupe.png frames 1 expect-same-screenshot {dir}/loupe.png test/gallery/loupe.png 24 0 0 1920 1040 -console set t 21.8 +console set deck.t 21.8 screenshot {dir}/graph.png frames 1 expect-same-screenshot {dir}/graph.png test/gallery/graph.png 24 0 0 1920 1040 -console set t 25.5 +console set deck.t 25.5 screenshot {dir}/graph-map.png frames 1 expect-same-screenshot {dir}/graph-map.png test/gallery/graph-map.png 24 0 0 1920 1040 -- cgit v1.3