From 6933f99ddb2d7103515d26838496309a807bba26 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 16 Nov 2026 21:28:20 -0300 Subject: Move standalone sketches into sketchbook examples --- examples/noc/test/accel_to_mouse.script | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/noc/test/accel_to_mouse.script (limited to 'examples/noc/test/accel_to_mouse.script') 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 -- cgit v1.3