aboutsummaryrefslogtreecommitdiffhomepage
path: root/animations/images#1.xml
blob: c6ad7a650963d87772adeaddea63ea4ca11594be (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0" encoding="utf-8" ?> 
<screenplay xmlns="urn:screenplay">

	<event kind="onLoad">
		<matrix id="initialMatrix" translate="[80,80]" />
		<paint  id="imagePaint" antiAlias="true">
			<color color="lightpink" />
		</paint>
		<apply  >
			<paint />
			<set begin="4" field="linearText" to="false" />
		</apply>
		<save>
			<matrix>
				<scale x="0.5" y="0.5" />
			</matrix>
		<image id="backImage" src="redcross.jpg" />
		<save>
			<matrix id="polyMatrix">
				<polyToPoly >
					<polygon>
						<moveTo id="pt1" x="0" y="0" />
						<lineTo id="pt2" x="256" y="0" />
						<lineTo x="256" y="256" />
						<lineTo x="0" y="256" />
						<close />
					</polygon>
					<polygon >
						<moveTo x="0" y="0" />
						<lineTo x="256" y="0" />
						<lineTo x="256" y="256" />
						<lineTo x="0" y="256" />
						<close />
					</polygon>
				</polyToPoly>
			</matrix>
			<paint id="paintFade">
				<color id="fade" />
			</paint>
			<image id="frontImage" src="bulgaria.jpg" />
		</save>
		</save>
		<apply begin="0.5" scope="polyMatrix">
			<animate id="pt1x" target="pt1" field="x" from="0" to="64" dur="0.5" repeat="3" />
			<animate target="pt1" field="y" from="0" to="-455" dur="0.5"  repeat="3"/>
			<animate target="pt2" field="x" from="256" to="192" dur="0.5"  repeat="3" />
			<animate target="pt2" field="y" from="0" to="-455" dur="0.5" repeat="3" />
		</apply>
		<apply begin="1" scope="backImage" >
			<set field="src" to="jet.jpg" />
		</apply>
		<apply begin="1" scope="frontImage" >
			<set field="src" to="redcross.jpg" />
		</apply>
		<apply begin="1.5" scope="backImage" >
			<set field="src" to="fire.jpg" />
		</apply>
		<apply begin="1.5" scope="frontImage" >
			<set field="src" to="jet.jpg" />
		</apply>
		<apply begin="2" scope="backImage" >
			<set field="src" to="chest.jpg" />
		</apply>
		<apply begin="2" scope="frontImage" >
			<set field="src" to="fire.jpg" />
		</apply>
		<apply begin="2" scope="paintFade" >
			<animate field="alpha" target="fade" from="1" to="0" dur=".5" />
		</apply>
		<post target="addCaptionFade" delay="2" />
		<post target="addLineCaption" delay="2" />
		<post target="scaleInitial" delay="3" />
	</event>
	
	<event kind="user" id="addCaptionFade" >
		<apply>
			<paint  > 
				<color id="captionFade" alpha="0" />
			</paint>
			<animate target="captionFade" field="alpha" from="0" to="1" dur="1" />
		</apply>
	</event>
	
	<event kind="user" id="addLineCaption" >
		<paint textSize="24" textAlign="center" > <!--  -->
			<shader  />
		</paint>
		<text text="Images" x="70" y="160" />
	</event>

	<event kind="user" id="scaleInitial" >
		<apply scope="imagePaint" >
			<set field="linearText" to="true" />
		</apply>
		<apply scope="initialMatrix" >
			<animate field="scale" from="1" to=".5" dur="1"/>
			<animate field="translateX" from="80" to="145" dur="1"/>
			<animate field="translateY" from="80" to="172" dur="1"/>
		</apply>
	</event>

</screenplay>