1cb93a386Sopenharmony_ci<?xml version="1.0" encoding="utf-8" ?> 2cb93a386Sopenharmony_ci<screenplay xmlns="urn:screenplay"> 3cb93a386Sopenharmony_ci <text id="partial" /> 4cb93a386Sopenharmony_ci <text id="type" text="Typewriter" /> 5cb93a386Sopenharmony_ci <int id="typeLength" value="0" /> 6cb93a386Sopenharmony_ci 7cb93a386Sopenharmony_ci <event kind="onLoad" > 8cb93a386Sopenharmony_ci <matrix id="initialMatrix" translate="[65,100]" /> 9cb93a386Sopenharmony_ci <paint id="textPaint" textSize="36" antiAlias="true" linearText="false" > 10cb93a386Sopenharmony_ci <color color="lightBlue" /> 11cb93a386Sopenharmony_ci </paint> 12cb93a386Sopenharmony_ci <apply > 13cb93a386Sopenharmony_ci <paint /> 14cb93a386Sopenharmony_ci <set begin="3" field="linearText" to="false" /> 15cb93a386Sopenharmony_ci </apply> 16cb93a386Sopenharmony_ci <matrix translate="[0,60]" /> 17cb93a386Sopenharmony_ci <rect top="textPaint.ascent" width="textPaint.measureText(type.text)" 18cb93a386Sopenharmony_ci height="-textPaint.ascent+textPaint.descent" /> 19cb93a386Sopenharmony_ci <paint> 20cb93a386Sopenharmony_ci <linearGradient points="[0,25,205,25]" tileMode="mirror" > 21cb93a386Sopenharmony_ci <matrix> 22cb93a386Sopenharmony_ci <scale x="3" y="2" /> 23cb93a386Sopenharmony_ci </matrix> 24cb93a386Sopenharmony_ci <color color="brown" /> 25cb93a386Sopenharmony_ci <color color="yellow" /> 26cb93a386Sopenharmony_ci </linearGradient> 27cb93a386Sopenharmony_ci </paint> 28cb93a386Sopenharmony_ci <add use="partial" /> 29cb93a386Sopenharmony_ci <textOnPath text="partial" offset="220" > 30cb93a386Sopenharmony_ci <path > 31cb93a386Sopenharmony_ci <addOval left="0" right="160" top="-70" bottom="30" direction="cw" /> 32cb93a386Sopenharmony_ci </path> 33cb93a386Sopenharmony_ci </textOnPath> 34cb93a386Sopenharmony_ci <textOnPath text="partial" offset="20" > 35cb93a386Sopenharmony_ci <path > 36cb93a386Sopenharmony_ci <addOval left="0" right="160" top="-50" bottom="50" direction="cw" /> 37cb93a386Sopenharmony_ci </path> 38cb93a386Sopenharmony_ci </textOnPath> 39cb93a386Sopenharmony_ci <apply mode="immediate" steps="type.length-1" > 40cb93a386Sopenharmony_ci <post target="nextChar" /> 41cb93a386Sopenharmony_ci <animate field="delay" from="0.1" to="0.95" /> 42cb93a386Sopenharmony_ci </apply> 43cb93a386Sopenharmony_ci <post target="addCaptionFade" delay="1" /> 44cb93a386Sopenharmony_ci <post target="addLineCaption" delay="1" /> 45cb93a386Sopenharmony_ci <post target="scaleInitial" delay="2" /> 46cb93a386Sopenharmony_ci </event> 47cb93a386Sopenharmony_ci 48cb93a386Sopenharmony_ci <event kind="user" id="nextChar" > 49cb93a386Sopenharmony_ci <apply id="applyTypeLength" scope="typeLength" > 50cb93a386Sopenharmony_ci <set id="incValue" field="value" to="typeLength.value + 1" /> 51cb93a386Sopenharmony_ci </apply> 52cb93a386Sopenharmony_ci <apply id="applySlice" scope="partial"> 53cb93a386Sopenharmony_ci <set id="setSlice" field="text" to="#script:type.text.slice(0, typeLength.value)" /> 54cb93a386Sopenharmony_ci </apply> 55cb93a386Sopenharmony_ci </event> 56cb93a386Sopenharmony_ci 57cb93a386Sopenharmony_ci <event kind="user" id="addCaptionFade" > 58cb93a386Sopenharmony_ci <apply> 59cb93a386Sopenharmony_ci <paint > 60cb93a386Sopenharmony_ci <color id="captionFade" alpha="0" /> 61cb93a386Sopenharmony_ci </paint> 62cb93a386Sopenharmony_ci <animate target="captionFade" field="alpha" from="0" to="1" dur="1" /> 63cb93a386Sopenharmony_ci </apply> 64cb93a386Sopenharmony_ci </event> 65cb93a386Sopenharmony_ci 66cb93a386Sopenharmony_ci <event kind="user" id="addLineCaption" > 67cb93a386Sopenharmony_ci <paint textSize="24" textAlign="center" > <!-- --> 68cb93a386Sopenharmony_ci <shader /> 69cb93a386Sopenharmony_ci </paint> 70cb93a386Sopenharmony_ci <text text="Text" x="textPaint.measureText(type.text)/2" y="40" /> 71cb93a386Sopenharmony_ci </event> 72cb93a386Sopenharmony_ci 73cb93a386Sopenharmony_ci <event kind="user" id="scaleInitial" > 74cb93a386Sopenharmony_ci <apply scope="textPaint" > 75cb93a386Sopenharmony_ci <set field="linearText" to="true" /> 76cb93a386Sopenharmony_ci </apply> 77cb93a386Sopenharmony_ci <apply scope="initialMatrix" > 78cb93a386Sopenharmony_ci <animate field="scale" from="1" to=".5" dur="1"/> 79cb93a386Sopenharmony_ci <animate field="translateX" from="65" to="130" dur="1"/> 80cb93a386Sopenharmony_ci <animate field="translateY" from="100" to="30" dur="1"/> 81cb93a386Sopenharmony_ci </apply> 82cb93a386Sopenharmony_ci </event> 83cb93a386Sopenharmony_ci 84cb93a386Sopenharmony_ci</screenplay> 85