Home | History | Annotate | Download | only in animations
      1 <?xml version="1.0" encoding="utf-8" ?>
      2 <screenplay xmlns="urn:screenplay">
      3 
      4 	<path id="check">
      5 		<moveTo x="20" y="50" />
      6         <quadTo x1="40" y1="70" x2="40" y2="77" />
      7 		<quadTo x1="45" y1="55" x2="75" y2="30" />
      8 	</path>
      9 
     10     <roundRect id="frame"
     11                left="3" top="3" right="97" bottom="97"
     12                rx="17" ry="17" />
     13 
     14 	<event kind="onLoad">
     15 		<paint antiAlias="true" />
     16 
     17         <!-- draw the background -->
     18 
     19         <paint stroke="true" strokeWidth="4">
     20             <color color="0x66000000"/>
     21         </paint>
     22         <matrix translate="[0,2]"/>
     23         <add use="frame" />
     24         <paint>
     25             <color color="black"/>
     26         </paint>
     27         <matrix translate="[0,-2]"/>
     28         <add use="frame" />
     29 
     30         <paint stroke="false">
     31 			<linearGradient points="[0,frame.top,0,frame.bottom]" tileMode="clamp"
     32                     offsets="[0,0.65,1]">
     33 				<color color="#F2F2F2" />
     34 				<color color="#AFAFAF" />
     35 				<color color="#C7C7C7" />
     36 			</linearGradient>
     37         </paint>
     38         <add use="frame" />
     39 
     40         <!-- draw the checkmark background -->
     41 
     42 		<paint stroke="true" strokeWidth="9">
     43             <shader/>
     44             <blur radius="1" blurStyle="normal"/>
     45             <color color="0x88777777"/>
     46         </paint>
     47         <matrix translate="[0,-2]" />
     48         <add use="check" />
     49 
     50 		<paint>
     51             <color color="0x88BBBBBB"/>
     52         </paint>
     53         <matrix translate="[0,4]" />
     54         <add use="check" />
     55 
     56         <!-- draw the checkmark -->
     57 
     58 		<paint>
     59             <maskFilter/>
     60             <color color="#66CC00"/>
     61         </paint>
     62         <matrix translate="[0,-2]" />
     63         <add use="check" />
     64 
     65 	</event>
     66 
     67 </screenplay>
     68