summaryrefslogtreecommitdiff
path: root/examples/vecanim/test/intro.script
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-16 21:28:20 -0300
committerGabriel Schneider <[email protected]>2026-11-16 21:28:20 -0300
commit6933f99ddb2d7103515d26838496309a807bba26 (patch)
tree991c2fe7d4a57957222876e190fa4d16a0fb889c /examples/vecanim/test/intro.script
parent82fca5c9f29124f37f6dcd08e73e6999ce44a69d (diff)
downloadsketchbook-6933f99ddb2d7103515d26838496309a807bba26.tar.gz
sketchbook-6933f99ddb2d7103515d26838496309a807bba26.zip
Move standalone sketches into sketchbook examples
Diffstat (limited to 'examples/vecanim/test/intro.script')
-rw-r--r--examples/vecanim/test/intro.script29
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/vecanim/test/intro.script b/examples/vecanim/test/intro.script
new file mode 100644
index 0000000..75ce751
--- /dev/null
+++ b/examples/vecanim/test/intro.script
@@ -0,0 +1,29 @@
+# Plays the intro headless on the GPU, with screenshots along the way,
+# then the same instants on the CPU renderer.
+frames 60
+screenshot .zig-cache/e2e/title.png
+console set t 7.5
+frames 1
+screenshot .zig-cache/e2e/shapes.png
+console set t 13
+frames 1
+screenshot .zig-cache/e2e/morph.png
+console set t 16.5
+frames 1
+screenshot .zig-cache/e2e/zoom.png
+console set t 24
+frames 1
+screenshot .zig-cache/e2e/text.png
+key b
+expect backend cpu
+console set t 13
+frames 1
+screenshot .zig-cache/e2e/morph-cpu.png
+console set t 24
+frames 1
+screenshot .zig-cache/e2e/text-cpu.png
+key g
+expect guides true
+console set t 16.5
+frames 1
+screenshot .zig-cache/e2e/guides.png