summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-10-22 01:28:25 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-10-22 01:28:25 (GMT)
commit7717f6d250d1158ceb8b1c25ec78c8719d8252a0 (patch)
treec5137e7f8a254250b46021d8476175020db15352 /examples/declarative
parentfa3a9815a3c4b1b7cd464648e67c16d299773f87 (diff)
downloadQt-7717f6d250d1158ceb8b1c25ec78c8719d8252a0.zip
Qt-7717f6d250d1158ceb8b1c25ec78c8719d8252a0.tar.gz
Qt-7717f6d250d1158ceb8b1c25ec78c8719d8252a0.tar.bz2
Incorporate latest cosmological theory.
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/animation/color-animation.qml21
1 files changed, 11 insertions, 10 deletions
diff --git a/examples/declarative/animation/color-animation.qml b/examples/declarative/animation/color-animation.qml
index ec3f90f..0cf8a44 100644
--- a/examples/declarative/animation/color-animation.qml
+++ b/examples/declarative/animation/color-animation.qml
@@ -25,18 +25,9 @@ Item {
}
}
}
- Particles {
- anchors.fill: parent; source: "images/star.png"; angleDeviation: 360; velocity: 0
- velocityDeviation: 0; count: parent.width / 10; fadeInDuration: 2800
- opacity: SequentialAnimation {
- running: true; repeat: true
- NumberAnimation { from: 0; to: 1; duration: 5000 }
- NumberAnimation { from: 1; to: 0; duration: 5000 }
- }
- }
}
- // the sun and the moon
+ // the sun, moon, and stars
Item {
width: parent.width; height: 2 * parent.height
transformOrigin: "Center"
@@ -52,6 +43,16 @@ Item {
source: "images/moon.png"; y: parent.height - 74; anchors.horizontalCenter: parent.horizontalCenter
transformOrigin: "Center"; rotation: -parent.rotation
}
+ Particles {
+ x: 0; y: parent.height/2; width: parent.width; height: parent.height/2
+ source: "images/star.png"; angleDeviation: 360; velocity: 0
+ velocityDeviation: 0; count: parent.width / 10; fadeInDuration: 2800
+ opacity: SequentialAnimation {
+ running: true; repeat: true
+ NumberAnimation { from: 0; to: 1; duration: 5000 }
+ NumberAnimation { from: 1; to: 0; duration: 5000 }
+ }
+ }
}
// ...and the ground.