blob: 36ed4df5dcb6fad05a27d36083c8b7e48fdd671f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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()*100)+30
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
|