Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.0
- import QtQuick.Particles 2.0
- Item {
- Rectangle {
- anchors.fill: parent
- color: "black"
- }
- ParticleSystem {
- id: partSys
- running: true
- }
- Emitter {
- id: emitter
- anchors.centerIn: parent
- system: partSys
- emitRate: 10
- lifeSpan: 30000
- sizeVariation: 100
- startTime: 1000
- opacity: 1
- velocity: AngleDirection {
- angleVariation: 360
- magnitude: 50
- magnitudeVariation: 25
- }
- }
- ItemParticle {
- delegate: Rectangle {
- color: "white"
- property int widthHeight: 1
- width:widthHeight
- height:widthHeight
- radius: widthHeight
- antialiasing: true
- Behavior on widthHeight {
- PropertyAnimation {duration: 30000}
- }
- Component.onCompleted: widthHeight = 4;
- }
- system: partSys
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement