Skip to content

Instantly share code, notes, and snippets.

@usagi usagi/qtq2_ui_test.qml
Last active Dec 10, 2015

Embed
What would you like to do?
import QtQuick 2.0
import QtQuick.Particles 2.0
Rectangle {
width: 500
height: 500
color: "black"
ParticleSystem {
anchors.fill: parent
ImageParticle {
source: "star.png"
colorVariation: 1.0
}
Emitter {
width: 50
height: 50
anchors.bottom: parent.bottom
size: 10
sizeVariation: 10
lifeSpan: 8000
velocity: AngleDirection {
angle: 300
angleVariation: 10
magnitude: 150
}
}
Gravity {
width: parent.width
height: parent.height / 3
y: parent.height / 25
angle: 100
magnitude: 100
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.