User Tools

Site Tools


randomlayout

RandomLayout

The RandomLayout positions display objects randomly about the x- and y-axes and applies a specified amount of random rotation.

<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>
randomlayout.txt · Last modified: 2015/09/18 16:53 by glass