presenter: tweak the particles so they can be seen on white background
This commit is contained in:
parent
0d26b037c4
commit
2ef3c0ce54
2 changed files with 33 additions and 11 deletions
|
@ -38,7 +38,14 @@ Item {
|
|||
y: root.height * root.yPos - height/2
|
||||
|
||||
ImageParticle {
|
||||
groups: ["center", "edge"]
|
||||
groups: ["center"]
|
||||
anchors.fill: parent
|
||||
source: "qrc:///particleresources/glowdot.png"
|
||||
colorVariation: 0.1
|
||||
color: "#FF9999FF"
|
||||
}
|
||||
ImageParticle {
|
||||
groups: ["edge"]
|
||||
anchors.fill: parent
|
||||
source: "qrc:///particleresources/glowdot.png"
|
||||
colorVariation: 0.1
|
||||
|
@ -48,9 +55,9 @@ Item {
|
|||
Emitter {
|
||||
anchors.fill: parent
|
||||
group: "center"
|
||||
emitRate: 400
|
||||
emitRate: 900
|
||||
lifeSpan: 200
|
||||
size: 20
|
||||
size: 20 * Window.screen.devicePixelRatio
|
||||
sizeVariation: 2
|
||||
endSize: 0
|
||||
//! [0]
|
||||
|
@ -68,11 +75,11 @@ Item {
|
|||
anchors.fill: parent
|
||||
group: "edge"
|
||||
startTime: 200
|
||||
emitRate: 200
|
||||
emitRate: 2000
|
||||
lifeSpan: 20
|
||||
size: 28
|
||||
sizeVariation: 2
|
||||
endSize: 16
|
||||
size: 28 * Window.screen.devicePixelRatio
|
||||
sizeVariation: 2 * Window.screen.devicePixelRatio
|
||||
endSize: 16 * Window.screen.devicePixelRatio
|
||||
shape: EllipseShape {fill: false}
|
||||
velocity: TargetDirection {
|
||||
targetX: particles.width/2
|
||||
|
@ -82,8 +89,8 @@ Item {
|
|||
magnitudeVariation: 0.1
|
||||
}
|
||||
acceleration: TargetDirection {
|
||||
targetX: particles.width/2
|
||||
targetY: particles.height/2
|
||||
targetX: particles.width
|
||||
targetY: particles.height
|
||||
targetVariation: 200
|
||||
proportionalMagnitude: true
|
||||
magnitude: 0.1
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import QtQuick 2.10
|
||||
import QtQuick.Layouts 1.10
|
||||
|
||||
Rectangle
|
||||
Item
|
||||
{
|
||||
color: "red"
|
||||
width: 500
|
||||
height: 500
|
||||
|
||||
|
@ -12,6 +12,21 @@ Rectangle
|
|||
hoverEnabled: true
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
id: layout
|
||||
anchors.fill: parent
|
||||
spacing: 0
|
||||
Repeater {
|
||||
id: rep
|
||||
model: [ "white", "yellow", "red", "blue", "gray", "black" ]
|
||||
delegate: Rectangle {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
color: modelData
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Presenter {
|
||||
anchors.fill: parent
|
||||
|
||||
|
|
Loading…
Reference in a new issue