summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-10-21 05:31:08 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-10-21 05:31:08 (GMT)
commit841745b64fe608e9066d11e082ec0666a2a5eaa8 (patch)
treec9ebbe12aa511bd3b5916f97019983b504793642 /examples
parent2b7c33da538e1fd596c679a089c1949cc8651103 (diff)
downloadQt-841745b64fe608e9066d11e082ec0666a2a5eaa8.zip
Qt-841745b64fe608e9066d11e082ec0666a2a5eaa8.tar.gz
Qt-841745b64fe608e9066d11e082ec0666a2a5eaa8.tar.bz2
small fixes to color-animation example
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/animation/color-animation.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/declarative/animation/color-animation.qml b/examples/declarative/animation/color-animation.qml
index 04ec0bf..ec3f90f 100644
--- a/examples/declarative/animation/color-animation.qml
+++ b/examples/declarative/animation/color-animation.qml
@@ -12,8 +12,8 @@ Item {
position: 0.0
color: SequentialAnimation {
running: true; repeat: true
- ColorAnimation { from: "DeepSkyBlue"; to: "#141450"; duration: 5000 }
- ColorAnimation { from: "#141450"; to: "DeepSkyBlue"; duration: 5000 }
+ ColorAnimation { from: "DeepSkyBlue"; to: "#0E1533"; duration: 5000 }
+ ColorAnimation { from: "#0E1533"; to: "DeepSkyBlue"; duration: 5000 }
}
}
GradientStop {
@@ -26,7 +26,7 @@ Item {
}
}
Particles {
- anchors.fill:parent; source: "images/star.png"; angleDeviation: 360; velocity: 0
+ 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
@@ -36,8 +36,8 @@ Item {
}
}
+ // the sun and the moon
Item {
- id: space
width: parent.width; height: 2 * parent.height
transformOrigin: "Center"
rotation: SequentialAnimation {
@@ -46,11 +46,11 @@ Item {
}
Image {
source: "images/sun.png"; y: 10; anchors.horizontalCenter: parent.horizontalCenter
- transformOrigin: "Center"; rotation: -space.rotation
+ transformOrigin: "Center"; rotation: -3 * parent.rotation
}
Image {
source: "images/moon.png"; y: parent.height - 74; anchors.horizontalCenter: parent.horizontalCenter
- transformOrigin: "Center"; rotation: -space.rotation
+ transformOrigin: "Center"; rotation: -parent.rotation
}
}