diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-10-22 01:28:25 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-10-22 01:28:25 (GMT) |
commit | 7717f6d250d1158ceb8b1c25ec78c8719d8252a0 (patch) | |
tree | c5137e7f8a254250b46021d8476175020db15352 /examples/declarative | |
parent | fa3a9815a3c4b1b7cd464648e67c16d299773f87 (diff) | |
download | Qt-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.qml | 21 |
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. |