• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8" ?>
2<screenplay xmlns="urn:screenplay">
3	<line id="line" x1="0" y1="0" x2="100" y2="0" />
4	<random id="rRed" min="0" max="255" seed="1900"  />
5	<random id="rBlue" min="0" max="255" seed="50000"  />
6	<random id="rGreen" min="0" max="255" seed="99"  />
7
8	<event kind="onLoad" >
9		<matrix id="initialMatrix" translate="[120,100]" />
10		<paint id="basePaint" strokeWidth="2" antiAlias="true" textAlign="center"
11				textSize="24" linearText="false" >
12			<color color="lightblue" />
13		</paint>
14		<apply mode="immediate" steps="17" >
15			<post target="addLine" />
16			<animate field="delay" from="0.1" to="0.95" />
17		</apply>
18		<post id="postAddCaptionFade" target="addCaptionFade" delay="1" />
19		<post id="postAddLineCaption"  target="addLineCaption" delay="1" />
20		<post target="scaleInitial" delay="2" />
21		<apply scope="basePaint"  begin="3">
22			<set begin="0" field="linearText" to="false" />
23		</apply>
24	</event>
25
26	<event kind="user" id="addLine" >
27		<matrix rotate="20" />
28		<apply restore="true" >
29			<paint >
30				<color id="ramp" />
31			</paint>
32			<set target="ramp" field="color" to="rgb(rRed.random,rBlue.random,rGreen.random)" />
33		</apply>
34		<add use="line" />
35	</event>
36
37	<event kind="user" id="addCaptionFade" >
38		<apply>
39			<paint>
40				<color id="captionFade" alpha="0" />
41			</paint>
42			<animate target="captionFade" field="alpha" from="0" to="1" dur="1" />
43		</apply>
44	</event>
45
46	<event kind="user" id="addLineCaption" >
47		<text id="linescaption" text="Lines" x="0" y="120" />
48	</event>
49
50	<event kind="user" id="scaleInitial" >
51		<apply scope="basePaint" >
52			<set field="linearText" to="true" dur="1" reset="true" />
53		</apply>
54		<apply scope="initialMatrix" >
55			<animate field="scale" from="1" to=".5" dur="1"/>
56			<animate field="translateX" from="120" to="60" dur="1"/>
57			<animate field="translateY" from="100" to="60" dur="1"/>
58		</apply>
59	</event>
60
61<!--
62	<event kind="keyChar" key="d" >
63		<dump />
64	</event>
65-->
66</screenplay>