summaryrefslogtreecommitdiff
path: root/anim/test/gallery.script
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 12:15:10 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:31:06 -0300
commit9ac990f4952e0c4357c5dcca0d48e23c5df0fb6e (patch)
treeff251ba8fc8796e8bbf7e3cd9c1512283d28b48c /anim/test/gallery.script
parent9656105cb4c902213f281e658dd88286cc2df8ed (diff)
downloadcomputeranim-9ac990f4952e0c4357c5dcca0d48e23c5df0fb6e.tar.gz
computeranim-9ac990f4952e0c4357c5dcca0d48e23c5df0fb6e.zip
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.
Diffstat (limited to 'anim/test/gallery.script')
-rw-r--r--anim/test/gallery.script20
1 files changed, 10 insertions, 10 deletions
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