diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 11:27:39 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-12 13:22:02 -0300 |
| commit | 71e534631bf68f33f802d64794340870374b9f69 (patch) | |
| tree | 2a45229ce238a4e2ce355683f0e75a7725d4851a /test/scene_compiled.script | |
| parent | 00605f7a109845a99f16621b267305a8b995dddc (diff) | |
| download | sketchbook-71e534631bf68f33f802d64794340870374b9f69.tar.gz sketchbook-71e534631bf68f33f802d64794340870374b9f69.zip | |
sketchbook: anim, manim-style scenes as a module (from the game's vecanim), with objects a scene draws itself
The player takes its canvas from the room it has and fits the scene's
frame into it, plays through and quits when exported, and draws vector
objects in runs around custom ones. The renderers' resvg comparison and
the timings come along as `zig build diff` and `zig build bench`; the
comparison's reference is padded to whole blocks rather than squeezed,
which had put Typst text over the limit.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Diffstat (limited to 'test/scene_compiled.script')
| -rw-r--r-- | test/scene_compiled.script | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/scene_compiled.script b/test/scene_compiled.script new file mode 100644 index 0000000..3c9ef44 --- /dev/null +++ b/test/scene_compiled.script @@ -0,0 +1,13 @@ +# The compiled test scene, through the player, and exported ({frames}: +# 30 fps, 640x360, so half size, played once without the player's controls). +frames 30 +screenshot .zig-cache/anim/compiled-written.png +console set t 1.5 +frames 1 +screenshot .zig-cache/anim/compiled-morph.png +# Frame 68 is 2.27 s in: the dot over the panel's corner, at half size. +expect-pixel {frames}/000068.png 400 240 88 196 221 255 1 +expect-pixel {frames}/000068.png 250 235 42 42 48 255 1 +# No bar of controls along the bottom, and the last frame is the end, 3 s. +expect-pixel {frames}/000068.png 8 352 28 28 31 255 +expect-pixel {frames}/000090.png 0 0 28 28 31 255 |
