-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStarField.qml
88 lines (76 loc) · 1.88 KB
/
StarField.qml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import QtQuick 2.8
import QtQuick.Particles 2.12
import QtGraphicalEffects 1.12
Item {
id: starFieldAF
width: parent.width
height: parent.height
property var currentCollection
ParticleSystem {
id: particlesystemSmall
anchors.fill: starFieldAF
ImageParticle {
id: stars
source: "assets/starfield/star.png"
groups: ["stars"]
opacity: 0.3
// opacity: 0.05
scale: 1
}
Emitter {
id: starsemitter
anchors.fill: parent
emitRate: 100 // 10000
lifeSpan: 20000 // 1000
lifeSpanVariation: 5000 // 500
startTime: 5000
group: "stars"
endSize: vpx(5)
// shape: MaskShape {
// source: currentCollection.shortName ? "assets/controllers_svg/%1.svg".arg(currentCollection.shortName) : ""
// }
}
}
ParticleSystem {
id: particlesystemBig
anchors.fill: parent
ImageParticle {
id: starsBig
source: "assets/starfield/star.png"
groups: ["starsBig"]
opacity: 0.8
scale: 1
}
Emitter {
id: starsemitterBig
anchors.fill: parent
emitRate: 5
lifeSpan: 35000
lifeSpanVariation: 5000
startTime: 5000
group: "starsBig"
endSize: vpx(15)
}
}
ParticleSystem {
id: particlesystemBigger
anchors.fill: parent
ImageParticle {
id: starsBigger
source: "assets/starfield/star.png"
groups: ["starsBigger"]
opacity: 1
scale: 1
}
Emitter {
id: starsemitterBigger
anchors.fill: parent
emitRate: 0.2
lifeSpanVariation: 10000
lifeSpan: 50000
startTime: 5000
group: "starsBigger"
endSize: vpx(30)
}
}
}