diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-16 21:28:20 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-16 21:28:20 -0300 |
| commit | 6933f99ddb2d7103515d26838496309a807bba26 (patch) | |
| tree | 991c2fe7d4a57957222876e190fa4d16a0fb889c /examples/noc/test/accel_to_mouse.script | |
| parent | 82fca5c9f29124f37f6dcd08e73e6999ce44a69d (diff) | |
| download | sketchbook-6933f99ddb2d7103515d26838496309a807bba26.tar.gz sketchbook-6933f99ddb2d7103515d26838496309a807bba26.zip | |
Move standalone sketches into sketchbook examples
Diffstat (limited to 'examples/noc/test/accel_to_mouse.script')
| -rw-r--r-- | examples/noc/test/accel_to_mouse.script | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/noc/test/accel_to_mouse.script b/examples/noc/test/accel_to_mouse.script new file mode 100644 index 0000000..7c3339d --- /dev/null +++ b/examples/noc/test/accel_to_mouse.script @@ -0,0 +1,18 @@ +# The mover chases the pointer to the lower right: within its radius (24) +# after a second, past it after a second and a half, back inside after two. +# Then it turns around after the pointer to the upper left. +move 560 300 +frames 64 +expect position[0] 560 ~24 +expect position[1] 300 ~24 +frames 26 +expect position[0] 615.2 ~0.1 +expect position[1] 327.5 ~0.1 +frames 30 +expect position[0] 560 ~24 +expect position[1] 300 ~24 +move 80 60 +frames 40 +expect velocity[0] -4.47 ~0.01 +expect velocity[1] -2.24 ~0.01 +screenshot .zig-cache/e2e/accel_to_mouse.png |
