2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-09-07 06:57:21 +00:00
|
|
|
|
2021-11-08 15:46:32 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Particles
|
2011-06-07 09:39:38 +00:00
|
|
|
|
2011-09-20 07:16:36 +00:00
|
|
|
Rectangle {
|
2011-06-07 09:39:38 +00:00
|
|
|
color: "goldenrod"
|
|
|
|
width: 2000
|
|
|
|
height: 2000
|
2011-09-20 07:16:36 +00:00
|
|
|
ParticleSystem {id: sys}
|
|
|
|
ImageParticle {
|
2011-06-07 09:39:38 +00:00
|
|
|
id: up
|
|
|
|
system: sys
|
2021-11-08 15:46:32 +00:00
|
|
|
source: "images/starfish_2.png"
|
2012-06-18 04:13:31 +00:00
|
|
|
autoRotation: true //leaving these two settings at default allows you to test going up performance levels
|
|
|
|
rotation: -90
|
2011-06-07 09:39:38 +00:00
|
|
|
}
|
2011-09-20 07:16:36 +00:00
|
|
|
|
|
|
|
Emitter {
|
2011-06-07 09:39:38 +00:00
|
|
|
anchors.centerIn: parent
|
|
|
|
system: sys
|
2011-10-19 08:17:55 +00:00
|
|
|
emitRate: 10
|
|
|
|
size: 200
|
2011-06-08 07:55:41 +00:00
|
|
|
lifeSpan: 10000
|
2012-06-25 02:01:46 +00:00
|
|
|
velocity: AngleDirection {angleVariation: 360; magnitudeVariation: 100;}
|
2011-06-07 09:39:38 +00:00
|
|
|
}
|
2011-09-20 07:16:36 +00:00
|
|
|
|
|
|
|
MouseArea {
|
2011-06-07 09:39:38 +00:00
|
|
|
anchors.fill: parent
|
2011-10-19 08:17:55 +00:00
|
|
|
onClicked: {
|
|
|
|
up.autoRotation = !up.autoRotation
|
|
|
|
up.rotation = up.autoRotation ? -90 : 0
|
|
|
|
}
|
2011-06-07 09:39:38 +00:00
|
|
|
}
|
|
|
|
}
|