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/text.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/text.script')
| -rw-r--r-- | test/text.script | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/text.script b/test/text.script new file mode 100644 index 0000000..5bea6f5 --- /dev/null +++ b/test/text.script @@ -0,0 +1,7 @@ +# `textSize` is what `text` draws: at scale 1 ten digits of the built-in +# font advance about 80 px on a 16 px line, and the box under them is that. +screenshot .zig-cache/text/native.png +expect-pixel .zig-cache/text/native.png 84 11 32 64 96 255 +expect-pixel .zig-cache/text/native.png 84 24 32 64 96 255 +expect-pixel .zig-cache/text/native.png 97 11 16 16 16 255 +expect-pixel .zig-cache/text/native.png 84 27 16 16 16 255 |
