summaryrefslogtreecommitdiffstats
path: root/animators/test/TestRectangleRotation.qml
diff options
context:
space:
mode:
Diffstat (limited to 'animators/test/TestRectangleRotation.qml')
-rw-r--r--animators/test/TestRectangleRotation.qml131
1 files changed, 0 insertions, 131 deletions
diff --git a/animators/test/TestRectangleRotation.qml b/animators/test/TestRectangleRotation.qml
deleted file mode 100644
index 0792e42..0000000
--- a/animators/test/TestRectangleRotation.qml
+++ /dev/null
@@ -1,131 +0,0 @@
-import QtQuick 2.0
-import Animators 1.0 as Rt
-
-Rectangle {
- id: root
- width: 320
- height: 480
- color: "black"
- property var out33in60: [ 0.33, 0.0, 0.40, 1.0, 1.0, 1.0 ]
- property var out60in33: [ 0.60, 0.0, 0.67, 1.0, 1.0, 1.0 ]
-
- Rt.Rectangle {
- id: renderThreadItem
- width: parent.width
- height: parent.height / 2
- color: "red"
- visible: !renderThreadAnimationsDisabled
- Text {
- anchors.centerIn: parent
- text: "Render thread animation"
- smooth: true
- color: "white"
- font.pixelSize: 20
- }
-
- Rt.SequentialAnimation {
- id: testAnimation
- running: control.running && !renderThreadAnimationsDisabled
- paused: control.paused
- loops: 3
- Rt.ColorAnimation {
- loops: 1
- running: false
- target: renderThreadItem
- property: "color"
- from: "red"
- to: "blue"
- duration: 6000
- easing.type: Easing.Bezier
- easing.bezierCurve: out60in33
- }
- Rt.NumberAnimation {
- loops: 1
- running: false
- target: renderThreadItem
- property: "rotation"
- from: 0.0
- to: 360.0
- duration: 6000
- easing.type: Easing.Bezier
- easing.bezierCurve: out60in33
- }
- Rt.PauseAnimation { duration: 2000 }
- Rt.NumberAnimation {
- loops: 1
- running: false
- target: renderThreadItem
- property: "opacity"
- from: 1.0
- to: 0.2
- duration: 6000
- easing.type: Easing.Bezier
- easing.bezierCurve: out60in33
- }
- }
- }
-
- Rectangle {
- id: mainThreadItem
- y: parent.height / 2
- width: parent.width
- height: parent.height / 2
- color: "red"
- visible: !mainThreadAnimationsDisabled
- Text {
- anchors.centerIn: parent
- text: "Main thread animation"
- smooth: true
- color: "white"
- font.pixelSize: 20
- }
-
-
- SequentialAnimation {
- id: referenceAnimation
- running: control.running && !mainThreadAnimationsDisabled
- paused: control.paused
- loops: 3
- ColorAnimation {
- loops: 1
- running: false
- target: mainThreadItem
- property: "color"
- from: "red"
- to: "blue"
- duration: 6000
- easing.type: Easing.Bezier
- easing.bezierCurve: out60in33
- }
- NumberAnimation {
- loops: 1
- running: false
- target: mainThreadItem
- property: "rotation"
- from: 0.0
- to: 360.0
- duration: 6000
- easing.type: Easing.Bezier
- easing.bezierCurve: out60in33
- }
- PauseAnimation { duration: 2000 }
- NumberAnimation {
- loops: 1
- running: false
- target: mainThreadItem
- property: "opacity"
- from: 1.0
- to: 0.2
- duration: 6000
- easing.type: Easing.Bezier
- easing.bezierCurve: out60in33
- }
- }
- }
-
- Control {
- id: control
- anchors.bottom: parent.bottom
- running: true
- }
-}