Advertisement
pedroadmn

Sensor Gravity

Apr 13th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 1.15 KB | None | 0 0
  1. <!-- Moon Theme -->
  2. <!-- http://zhuti.xiaomi.com/detail/d29ddb57-edd9-48ce-bb77-9941fe108e72 -->
  3.  
  4. <VariableBinders>
  5.     <SensorBinder type="gravity" rate="500">
  6.         <Variable name="gravity_x" index="0" />
  7.         <Variable name="gravity_y" index="1" />
  8.     </SensorBinder>
  9. </VariableBinders>
  10.  
  11.     <Group w="1080" h="1920" clip="true" layered="true" visibility="eq(#blur_wall,0)">
  12.         <Group x="540" visibility="eq(#bizhi,2)">
  13.             <Image src="wall/dh1.png" x="#gravity_x*6" y="0" align="center" />
  14.             <Image src="wall/dh2.png" x="#gravity_x*2" y="548" align="center" />
  15.             <Image src="wall/dh3.png" x="#gravity_x*4" y="700-#gravity_y*5" align="center" />
  16.             <Image src="wall/dh4.png" x="-#gravity_x*6" y="910-#gravity_y*3" align="center" />
  17.             <Image src="wall/dh5.png" x="-#gravity_x*8" y="810" align="center" />
  18.             <Image src="wall/dh6.png" x="-#gravity_x*10" y="1920+max(#gravity_y,0)*4" align="center" alignV="bottom" />
  19.         </Group>
  20.             <Image src="wall/wall1.png" w="1080" h="1920" visibility="eq(#bizhi,1)" />
  21.             <Wallpaper w="1080" h="1920" visibility="eq(#bizhi,0)" />
  22.             <Image src="wall/mask.png" w="1080" h="1920" xfermode="clear" visibility="#bz_ts" />
  23.     </Group>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement