summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-05-12 09:43:18 +0200
committerGunnar Sletta <gunnar.sletta@nokia.com>2011-05-12 09:43:18 +0200
commit027ae43b4cbe033b0e31b3c15a16297412c4ff54 (patch)
treeefb76ea0a371f89de0b56a04453d15b2b1ac882b
parent33051c1ca11de3bd834d5c12f40c2b3b910d6f91 (diff)
some small fixes
-rw-r--r--examples/animatedbackground/SlideDeck.qml7
-rw-r--r--examples/animatedbackground/Swirl.qml6
2 files changed, 7 insertions, 6 deletions
diff --git a/examples/animatedbackground/SlideDeck.qml b/examples/animatedbackground/SlideDeck.qml
index ed5d46b..6abc374 100644
--- a/examples/animatedbackground/SlideDeck.qml
+++ b/examples/animatedbackground/SlideDeck.qml
@@ -44,6 +44,7 @@ Presentation {
model: 4
Swirl {
+ width: parent.width
anchors.bottom: parent.bottom
height: parent.height / (2 + index)
opacity: 0.3
@@ -66,13 +67,13 @@ Presentation {
anchors.fill: parent
system: particles
particlesPerSecond: Math.sqrt(parent.width * parent.height) / 30
- particleDuration: 1000
+ particleDuration: 2000
emitting: true
particleSize: 4
particleSizeVariation: 2
- acceleration: AngleVector{ angle: 90; angleVariation: 360; magnitude: 50; }
- speed: AngleVector{ angle: 90; angleVariation: 360; magnitude: 10; }
+ acceleration: AngleVector{ angle: 90; angleVariation: 360; magnitude: 20; }
+ speed: AngleVector{ angle: -90; angleVariation: 360; magnitude: 10; }
}
diff --git a/examples/animatedbackground/Swirl.qml b/examples/animatedbackground/Swirl.qml
index 6bba3dd..e50de3a 100644
--- a/examples/animatedbackground/Swirl.qml
+++ b/examples/animatedbackground/Swirl.qml
@@ -3,8 +3,8 @@
ShaderEffectItem {
id: shader
- width: parent.width
- height: 100
+ width: 400
+ height: 300
property real speed: 1
@@ -23,7 +23,7 @@ ShaderEffectItem {
property real amplitude: height / 2
- property variant colorTable
+ property variant colorTable: ShaderEffectSource { sourceItem: Rectangle { width: 4; height: 4; color: "steelblue" } }
fragmentShader: "
uniform lowp float qt_Opacity;