blob: d8dcc1edd93cc8e3ecd8bc4ad68ada5b05ae9a1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import QtQuick 2.0
import QtGraphicalEffects 1.0
import "." as QML
Rectangle {
id : canvas
anchors.fill: parent
color: "black"
Repeater {
model: Math.round(Math.random()*canvas.width/10)+100
QML.Firefly {
parent: canvas
x: Math.round(Math.random()*canvas.width)
y: Math.round(Math.random()*canvas.height)
}
} //end of Repeater
} //end of canvas rectangle
|