diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-06-15 10:47:25 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-06-15 10:47:25 +0200 |
commit | 9ee3d49120344179326525af11e671de6d40a776 (patch) | |
tree | 2590ec2775a63c5861ecf6e0aa6e128df492e3cd /BackgroundSwirls.qml | |
parent | d5ef42f53548df1b8c6812147700ca8cc90d9fd4 (diff) |
Diffstat (limited to 'BackgroundSwirls.qml')
-rw-r--r-- | BackgroundSwirls.qml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/BackgroundSwirls.qml b/BackgroundSwirls.qml index 01bccd0..68d85c4 100644 --- a/BackgroundSwirls.qml +++ b/BackgroundSwirls.qml @@ -1,5 +1,5 @@ import QtQuick 2.0 -import Qt.labs.particles 2.0 +import QtQuick.Particles 2.0 Item { anchors.fill: parent @@ -57,24 +57,24 @@ Item { ParticleSystem{ id: particles } - ColoredParticle{ + ImageParticle{ anchors.fill: parent system: particles - image: "images/particle.png" + source: "images/particle.png" alpha: 0 colorVariation: 0.2 } - TrailEmitter{ + Emitter{ anchors.fill: parent system: particles - particlesPerSecond: Math.sqrt(parent.width * parent.height) / 30 - particleDuration: 2000 + emitRate: Math.sqrt(parent.width * parent.height) / 30 + lifeSpan: 2000 emitting: true - particleSize: 4 - particleSizeVariation: 2 + size: 4 + sizeVariation: 2 - acceleration: AngleVector{ angle: 90; angleVariation: 360; magnitude: 10; } - speed: AngleVector{ angle: -90; angleVariation: 360; magnitude: 5; } + acceleration: AngledDirection { angle: 90; angleVariation: 360; magnitude: 10; } + speed: AngledDirection { angle: -90; angleVariation: 360; magnitude: 5; } } |