diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2012-07-17 18:32:16 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-24 05:01:59 +0200 |
commit | dbe4d2010816f1f22f48f3f5bce0d15d3ad7a7e2 (patch) | |
tree | d8e205e14e5497411ee7dd3d9a3c569851b73fb6 /examples/particles/emitters/content/shapeanddirection.qml | |
parent | bd2493e21d7619e448b205f215777d1d7b023075 (diff) |
Particle example restyling
For self-contained particle systems, placing them inside the
ParticleSystem element is encouraged.
Change-Id: Iafc5a94bb07c4c0dac0daec300d01e0fde165146
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'examples/particles/emitters/content/shapeanddirection.qml')
-rw-r--r-- | examples/particles/emitters/content/shapeanddirection.qml | 100 |
1 files changed, 49 insertions, 51 deletions
diff --git a/examples/particles/emitters/content/shapeanddirection.qml b/examples/particles/emitters/content/shapeanddirection.qml index d2a8bb1dd5..96b4b60ee4 100644 --- a/examples/particles/emitters/content/shapeanddirection.qml +++ b/examples/particles/emitters/content/shapeanddirection.qml @@ -53,62 +53,60 @@ Rectangle { ParticleSystem { id: particles - } - - ImageParticle { - groups: ["center","edge"] anchors.fill: parent - system: particles - source: "../../images/particle.png" - colorVariation: 0.1 - color: "#009999FF" - } - Emitter { - anchors.fill: parent - group: "center" - system: particles - emitRate: 400 - lifeSpan: 2000 - size: 20 - sizeVariation: 2 - endSize: 0 - //! [0] - shape: EllipseShape {fill: false} - velocity: TargetDirection { - targetX: root.width/2 - targetY: root.height/2 - proportionalMagnitude: true - magnitude: 0.5 + ImageParticle { + groups: ["center","edge"] + anchors.fill: parent + source: "../../images/particle.png" + colorVariation: 0.1 + color: "#009999FF" } - //! [0] - } - Emitter { - anchors.fill: parent - group: "edge" - startTime: 2000 - system: particles - emitRate: 2000 - lifeSpan: 2000 - size: 28 - sizeVariation: 2 - endSize: 16 - shape: EllipseShape {fill: false} - velocity: TargetDirection { - targetX: root.width/2 - targetY: root.height/2 - proportionalMagnitude: true - magnitude: 0.1 - magnitudeVariation: 0.1 + Emitter { + anchors.fill: parent + group: "center" + emitRate: 400 + lifeSpan: 2000 + size: 20 + sizeVariation: 2 + endSize: 0 + //! [0] + shape: EllipseShape {fill: false} + velocity: TargetDirection { + targetX: root.width/2 + targetY: root.height/2 + proportionalMagnitude: true + magnitude: 0.5 + } + //! [0] } - acceleration: TargetDirection { - targetX: root.width/2 - targetY: root.height/2 - targetVariation: 200 - proportionalMagnitude: true - magnitude: 0.1 - magnitudeVariation: 0.1 + + Emitter { + anchors.fill: parent + group: "edge" + startTime: 2000 + emitRate: 2000 + lifeSpan: 2000 + size: 28 + sizeVariation: 2 + endSize: 16 + shape: EllipseShape {fill: false} + velocity: TargetDirection { + targetX: root.width/2 + targetY: root.height/2 + proportionalMagnitude: true + magnitude: 0.1 + magnitudeVariation: 0.1 + } + acceleration: TargetDirection { + targetX: root.width/2 + targetY: root.height/2 + targetVariation: 200 + proportionalMagnitude: true + magnitude: 0.1 + magnitudeVariation: 0.1 + } } } } |