diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 11:13:20 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-12 13:22:02 -0300 |
| commit | 86ffca0024326110962f0880727f4eb84e6a48d1 (patch) | |
| tree | 055f489341053c1db258606bb63b282bc7345a89 /test/export.script | |
| parent | a62a6aa896adda901d335ef38814a13b8839545c (diff) | |
| download | sketchbook-86ffca0024326110962f0880727f4eb84e6a48d1.tar.gz sketchbook-86ffca0024326110962f0880727f4eb84e6a48d1.zip | |
sketchbook: frames for ffmpeg (--export, on a clock of its own), text sizes, a font from the environment
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Diffstat (limited to 'test/export.script')
| -rw-r--r-- | test/export.script | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/export.script b/test/export.script new file mode 100644 index 0000000..bd238e7 --- /dev/null +++ b/test/export.script @@ -0,0 +1,11 @@ +# Two exports of the same sketch ({a}, {b}: directories of PNGs, 30 fps, +# 320x180, five frames) are the same pictures, and frame k is k/30 s in. +expect-same-screenshot {a}/000000.png {b}/000000.png +expect-same-screenshot {a}/000004.png {b}/000004.png +expect-different-screenshot {a}/000000.png {a}/000004.png +# Frame 0 is before any time passed; frame 4 has the bar 40 px wide. +expect-pixel {a}/000000.png 0 0 32 32 32 255 +expect-pixel {a}/000004.png 39 0 255 128 64 255 +expect-pixel {a}/000004.png 41 0 32 32 32 255 +# The canvas is the size asked for. +expect-pixel {a}/000004.png 319 179 32 32 32 255 |
