From 7717f6d250d1158ceb8b1c25ec78c8719d8252a0 Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Thu, 22 Oct 2009 11:28:25 +1000 Subject: Incorporate latest cosmological theory. --- examples/declarative/animation/color-animation.qml | 21 +++++++++++---------- 1 file 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. -- cgit v0.12