blob: 0a879b5de1e464563ada0060e3b53bfd87549b3a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Two vehicles follow a four-point path; the slower one drifts wider.
# Space hides the debugging lines; a click makes a new path.
expect path[1][0] 105.627 ~0.001
frames 240
expect cars[0].position[0] 353.657 ~0.001
expect cars[1].position[1] 239.221 ~0.001
screenshot .zig-cache/e2e/path_following.png
key space
expect debug false
frames 1
screenshot .zig-cache/e2e/path_following-plain.png
click 320 180
key space
frames 120
expect path[2][1] 198.958 ~0.001
expect cars[1].position[0] 109.937 ~0.001
# The road is 200 gray everywhere, its round joins included: translucent
# black drawn once.
expect-pixel .zig-cache/e2e/path_following-plain.png 105 80 200 200 200 255
expect-pixel .zig-cache/e2e/path_following-plain.png 420 285 200 200 200 255
expect-pixel .zig-cache/e2e/path_following-plain.png 110 100 200 200 200 255
screenshot .zig-cache/e2e/path_following-new.png
|