Skip to content

Instantly share code, notes, and snippets.

@usagi
Last active December 10, 2015 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save usagi/4433211 to your computer and use it in GitHub Desktop.
Save usagi/4433211 to your computer and use it in GitHub Desktop.
import QtQuick 2.0
import QtQuick.Particles 2.0
Rectangle {
width: 500
height: 500
color: "black"
ParticleSystem {
anchors.fill: parent
ImageParticle {
source: "star.png"
}
Emitter {
width: 50;
height: 50;
anchors.bottom: parent.bottom
size: 50
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment