tests/auto/declarative/qdeclarativeparticles/data/particlemotiontest.qml
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
       
     1 import Qt 4.7
       
     2 import Qt.labs.particles 1.0
       
     3 
       
     4 Rectangle {
       
     5     width: 240
       
     6     height: 320
       
     7     color: "black"
       
     8     Particles {
       
     9         objectName: "particles"
       
    10         anchors.fill: parent
       
    11         width: 1
       
    12         height: 1
       
    13         source: "particle.png"
       
    14         lifeSpan: 5000
       
    15         count: 200
       
    16         angle: 270
       
    17         angleDeviation: 45
       
    18         velocity: 50
       
    19         velocityDeviation: 30
       
    20         ParticleMotionGravity {
       
    21             objectName: "motionGravity"
       
    22             yattractor: 1000
       
    23             xattractor: 0
       
    24             acceleration: 25
       
    25         }
       
    26     }
       
    27     resources: [
       
    28         ParticleMotionWander {
       
    29             objectName: "motionWander"
       
    30             xvariance: 30
       
    31             yvariance: 30
       
    32             pace: 100
       
    33         }
       
    34     ]
       
    35 }