xref: /third_party/skia/animations/images#1.xml (revision cb93a386)
1cb93a386Sopenharmony_ci<?xml version="1.0" encoding="utf-8" ?> 
2cb93a386Sopenharmony_ci<screenplay xmlns="urn:screenplay">
3cb93a386Sopenharmony_ci
4cb93a386Sopenharmony_ci	<event kind="onLoad">
5cb93a386Sopenharmony_ci		<matrix id="initialMatrix" translate="[80,80]" />
6cb93a386Sopenharmony_ci		<paint  id="imagePaint" antiAlias="true">
7cb93a386Sopenharmony_ci			<color color="lightpink" />
8cb93a386Sopenharmony_ci		</paint>
9cb93a386Sopenharmony_ci		<apply  >
10cb93a386Sopenharmony_ci			<paint />
11cb93a386Sopenharmony_ci			<set begin="4" field="linearText" to="false" />
12cb93a386Sopenharmony_ci		</apply>
13cb93a386Sopenharmony_ci		<save>
14cb93a386Sopenharmony_ci			<matrix>
15cb93a386Sopenharmony_ci				<scale x="0.5" y="0.5" />
16cb93a386Sopenharmony_ci			</matrix>
17cb93a386Sopenharmony_ci		<image id="backImage" src="redcross.jpg" />
18cb93a386Sopenharmony_ci		<save>
19cb93a386Sopenharmony_ci			<matrix id="polyMatrix">
20cb93a386Sopenharmony_ci				<polyToPoly >
21cb93a386Sopenharmony_ci					<polygon>
22cb93a386Sopenharmony_ci						<moveTo id="pt1" x="0" y="0" />
23cb93a386Sopenharmony_ci						<lineTo id="pt2" x="256" y="0" />
24cb93a386Sopenharmony_ci						<lineTo x="256" y="256" />
25cb93a386Sopenharmony_ci						<lineTo x="0" y="256" />
26cb93a386Sopenharmony_ci						<close />
27cb93a386Sopenharmony_ci					</polygon>
28cb93a386Sopenharmony_ci					<polygon >
29cb93a386Sopenharmony_ci						<moveTo x="0" y="0" />
30cb93a386Sopenharmony_ci						<lineTo x="256" y="0" />
31cb93a386Sopenharmony_ci						<lineTo x="256" y="256" />
32cb93a386Sopenharmony_ci						<lineTo x="0" y="256" />
33cb93a386Sopenharmony_ci						<close />
34cb93a386Sopenharmony_ci					</polygon>
35cb93a386Sopenharmony_ci				</polyToPoly>
36cb93a386Sopenharmony_ci			</matrix>
37cb93a386Sopenharmony_ci			<paint id="paintFade">
38cb93a386Sopenharmony_ci				<color id="fade" />
39cb93a386Sopenharmony_ci			</paint>
40cb93a386Sopenharmony_ci			<image id="frontImage" src="bulgaria.jpg" />
41cb93a386Sopenharmony_ci		</save>
42cb93a386Sopenharmony_ci		</save>
43cb93a386Sopenharmony_ci		<apply begin="0.5" scope="polyMatrix">
44cb93a386Sopenharmony_ci			<animate id="pt1x" target="pt1" field="x" from="0" to="64" dur="0.5" repeat="3" />
45cb93a386Sopenharmony_ci			<animate target="pt1" field="y" from="0" to="-455" dur="0.5"  repeat="3"/>
46cb93a386Sopenharmony_ci			<animate target="pt2" field="x" from="256" to="192" dur="0.5"  repeat="3" />
47cb93a386Sopenharmony_ci			<animate target="pt2" field="y" from="0" to="-455" dur="0.5" repeat="3" />
48cb93a386Sopenharmony_ci		</apply>
49cb93a386Sopenharmony_ci		<apply begin="1" scope="backImage" >
50cb93a386Sopenharmony_ci			<set field="src" to="jet.jpg" />
51cb93a386Sopenharmony_ci		</apply>
52cb93a386Sopenharmony_ci		<apply begin="1" scope="frontImage" >
53cb93a386Sopenharmony_ci			<set field="src" to="redcross.jpg" />
54cb93a386Sopenharmony_ci		</apply>
55cb93a386Sopenharmony_ci		<apply begin="1.5" scope="backImage" >
56cb93a386Sopenharmony_ci			<set field="src" to="fire.jpg" />
57cb93a386Sopenharmony_ci		</apply>
58cb93a386Sopenharmony_ci		<apply begin="1.5" scope="frontImage" >
59cb93a386Sopenharmony_ci			<set field="src" to="jet.jpg" />
60cb93a386Sopenharmony_ci		</apply>
61cb93a386Sopenharmony_ci		<apply begin="2" scope="backImage" >
62cb93a386Sopenharmony_ci			<set field="src" to="chest.jpg" />
63cb93a386Sopenharmony_ci		</apply>
64cb93a386Sopenharmony_ci		<apply begin="2" scope="frontImage" >
65cb93a386Sopenharmony_ci			<set field="src" to="fire.jpg" />
66cb93a386Sopenharmony_ci		</apply>
67cb93a386Sopenharmony_ci		<apply begin="2" scope="paintFade" >
68cb93a386Sopenharmony_ci			<animate field="alpha" target="fade" from="1" to="0" dur=".5" />
69cb93a386Sopenharmony_ci		</apply>
70cb93a386Sopenharmony_ci		<post target="addCaptionFade" delay="2" />
71cb93a386Sopenharmony_ci		<post target="addLineCaption" delay="2" />
72cb93a386Sopenharmony_ci		<post target="scaleInitial" delay="3" />
73cb93a386Sopenharmony_ci	</event>
74cb93a386Sopenharmony_ci	
75cb93a386Sopenharmony_ci	<event kind="user" id="addCaptionFade" >
76cb93a386Sopenharmony_ci		<apply>
77cb93a386Sopenharmony_ci			<paint  > 
78cb93a386Sopenharmony_ci				<color id="captionFade" alpha="0" />
79cb93a386Sopenharmony_ci			</paint>
80cb93a386Sopenharmony_ci			<animate target="captionFade" field="alpha" from="0" to="1" dur="1" />
81cb93a386Sopenharmony_ci		</apply>
82cb93a386Sopenharmony_ci	</event>
83cb93a386Sopenharmony_ci	
84cb93a386Sopenharmony_ci	<event kind="user" id="addLineCaption" >
85cb93a386Sopenharmony_ci		<paint textSize="24" textAlign="center" > <!--  -->
86cb93a386Sopenharmony_ci			<shader  />
87cb93a386Sopenharmony_ci		</paint>
88cb93a386Sopenharmony_ci		<text text="Images" x="70" y="160" />
89cb93a386Sopenharmony_ci	</event>
90cb93a386Sopenharmony_ci
91cb93a386Sopenharmony_ci	<event kind="user" id="scaleInitial" >
92cb93a386Sopenharmony_ci		<apply scope="imagePaint" >
93cb93a386Sopenharmony_ci			<set field="linearText" to="true" />
94cb93a386Sopenharmony_ci		</apply>
95cb93a386Sopenharmony_ci		<apply scope="initialMatrix" >
96cb93a386Sopenharmony_ci			<animate field="scale" from="1" to=".5" dur="1"/>
97cb93a386Sopenharmony_ci			<animate field="translateX" from="80" to="145" dur="1"/>
98cb93a386Sopenharmony_ci			<animate field="translateY" from="80" to="172" dur="1"/>
99cb93a386Sopenharmony_ci		</apply>
100cb93a386Sopenharmony_ci	</event>
101cb93a386Sopenharmony_ci
102cb93a386Sopenharmony_ci</screenplay>
103