User Tools

Site Tools


pilelayout

PileLayout

The PileLayout positions the centers of the container's objects in the same location and rotates them individually around the center.

Images lain out in a circular pile using the pile layout.
PileLayout screenshot
<Container x="700" y="200" 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="PileLayout" tween="true" tweenTime="1500"/>
    <!--if angle of rotation is not specified, the rotation is random-->
</Container>
<Container x="1000" y="500" class="fixed_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="PileLayout" angle="20" tween="true" tweenTime="1500"/>
    <!--to fix the rotation, specify the angle-->
</Container>
pilelayout.txt · Last modified: 2015/09/18 16:37 by glass