diff options
Diffstat (limited to 'examples/live/test/live.script')
| -rw-r--r-- | examples/live/test/live.script | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/live/test/live.script b/examples/live/test/live.script index bedcf83..1ddcec2 100644 --- a/examples/live/test/live.script +++ b/examples/live/test/live.script @@ -94,3 +94,18 @@ expect out.code[1].a 1129906176 up 169 27 type u expect out.code[1].a 1130102784 +# Square units: a disc of radius 0.5 (half the window's height is 1) is +# 180 pixels across each way from the centre, round on 16:9. +type % +type c +type color = step(x * x + y * y, 0.25) +key escape +expect color.len 7 +frames 2 +screenshot .zig-cache/live/disc.png +expect-pixel .zig-cache/live/disc.png 810 360 255 255 255 255 2 +expect-pixel .zig-cache/live/disc.png 640 190 255 255 255 255 2 +expect-pixel .zig-cache/live/disc.png 470 360 255 255 255 255 2 +expect-pixel .zig-cache/live/disc.png 830 360 0 0 0 255 2 +expect-pixel .zig-cache/live/disc.png 640 170 0 0 0 255 2 +expect-pixel .zig-cache/live/disc.png 640 550 0 0 0 255 2 |
