Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.02 KB | None | 0 0
  1. import QtQuick 2.0
  2. import QtQuick.Particles 2.0
  3.  
  4. Item {
  5.     Rectangle {
  6.         anchors.fill: parent
  7.         color: "black"
  8.     }
  9.  
  10.     ParticleSystem {
  11.         id: partSys
  12.         running: true
  13.     }
  14.  
  15.     Emitter {
  16.         id: emitter
  17.         anchors.centerIn: parent
  18.         system: partSys
  19.         emitRate: 10
  20.         lifeSpan: 30000
  21.         sizeVariation: 100
  22.         startTime: 1000
  23.         opacity: 1
  24.         velocity: AngleDirection {
  25.             angleVariation: 360
  26.             magnitude: 50
  27.             magnitudeVariation: 25
  28.         }
  29.     }
  30.  
  31.     ItemParticle {
  32.         delegate: Rectangle {
  33.             color: "white"
  34.             property int widthHeight: 1
  35.             width:widthHeight
  36.             height:widthHeight
  37.             radius: widthHeight
  38.             antialiasing: true
  39.             Behavior on widthHeight {
  40.                 PropertyAnimation {duration: 30000}
  41.             }
  42.             Component.onCompleted: widthHeight = 4;
  43.         }
  44.         system: partSys
  45.     }
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement