blob: 30b208739532bf9f3066162fbdff55add6b73756 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# The live test scene, through the player. It holds at the pause.
frames 150
expect t 2
screenshot .zig-cache/anim/live.png
# The custom panel is over the circle added before it,
expect-pixel .zig-cache/anim/live.png 600 330 32 64 96 255 1
expect-pixel .zig-cache/anim/live.png 450 360 252 98 85 255 1
# under the square added after it,
expect-pixel .zig-cache/anim/live.png 725 400 131 193 103 255 1
# and its bar is as full as the value the timeline moved to 0.5.
expect-pixel .zig-cache/anim/live.png 600 390 240 172 95 255 1
expect-pixel .zig-cache/anim/live.png 680 390 32 64 96 255 1
# Half way through its move it is half way.
console set playing false
console set t 1.5
screenshot .zig-cache/anim/live-moving.png
expect-pixel .zig-cache/anim/live-moving.png 400 330 32 64 96 255 1
expect-pixel .zig-cache/anim/live-moving.png 600 330 252 98 85 255 1
# The CPU renderer layers the same way.
console set t 2
key b
expect backend cpu
screenshot .zig-cache/anim/live-cpu.png
expect-pixel .zig-cache/anim/live-cpu.png 600 330 32 64 96 255 1
expect-pixel .zig-cache/anim/live-cpu.png 725 400 131 193 103 255 1
key b
# A click continues: the camera zooms to 2 and the panel fades to half,
# over the background where it now reaches.
click 640 360
expect playing true
frames 70
screenshot .zig-cache/anim/live-zoom.png
expect-pixel .zig-cache/anim/live-zoom.png 800 300 30 46 64 255 2
# Guides draw over everything.
key g
expect guides true
screenshot .zig-cache/anim/live-guides.png
|