diff options
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 + } } } } |