summaryrefslogtreecommitdiffstats
path: root/examples/declarative/particles/Trails/Shimmer.qml
blob: 634302d3c6365e77dbf0cf2c423e5c30e9ca1045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import QtQuick 2.0
import Qt.labs.particles 2.0

Rectangle{
    width: 360
    height: 540
    color: "black"
    MouseArea{
        anchors.fill: parent
        onClicked: particles.running = !particles.running
    }
    ParticleSystem{ 
        id: particles 
        running: false
    }
    ColoredParticle{
        anchors.fill: parent
        system: particles
        image: "content/star.png"
        colorVariation: 0.2
    }
    TrailEmitter{
        anchors.fill: parent
        system: particles
        particlesPerSecond: 2000
        particleDuration: 2000
        emitting: true
        particleSize: 40
        particleSizeVariation: 10
    }
}