User Tools

Site Tools


randomlayout

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

randomlayout [2015/09/18 16:53] (current)
glass created
Line 1: Line 1:
 +====== RandomLayout ======
  
 +The RandomLayout positions display objects randomly about the x- and y-axes and applies a specified amount of random rotation.
 +
 +<​code:​csharp linenums:​1>​
 +<​TouchContainer x="​500"​ y="​20"​ class="​random_rotation">​
 +    <Image src="​images/​plane.jpg"​ scale="​.3"/>​
 +    <Image src="​images/​plane.jpg"​ scale="​.3"/>​
 +    <Image src="​images/​plane.jpg"​ scale="​.3"/>​
 +    <Image src="​images/​plane.jpg"​ scale="​.3"/>​
 +    <Image src="​images/​plane.jpg"​ scale="​.3"/>​
 +    <Image src="​images/​plane.jpg"​ scale="​.3"/>​
 +    <Layout classRef="​RandomLayout"​ maxX="​400"​ maxY="​500"​ minRot="​-30"​ maxRot="​30"​ type="​randomXYRotation"​ tween="​true"​ tweenTime="​1500"/> ​                 ​
 +</​TouchContainer>​
 +</​code>​
randomlayout.txt · Last modified: 2015/09/18 16:53 by glass