Debian Codegraph @

tests/manual/scenegraph_lancelot/data/rotation/rotation_clip_multi.qml

raw
1 import QtQuick 2.0
2
3 Rectangle {
4 width: 320
5 height: 480
6 property int standardWidth: 60
7 property int standardHeight: 60
8 property int standardSpacing: 20
9 property bool smoothing: true
10 Rectangle {
11 width: 150
12 height: 150
13 anchors.centerIn: parent
14 color: "black"
15 clip: true
16 rotation: 45
17 Rectangle {
18 width: 200
19 height: 200
20 anchors.centerIn: parent
21 color: "lightGray"
22 clip: true
23 Grid {
24 anchors.centerIn: parent
25 columns: 4
26 spacing: standardSpacing
27 Rectangle{ color: "red"; width: standardWidth; height: standardHeight; transform: Rotation { origin.x: standardWidth/2; origin.y: standardHeight/2 ; axis{x: 0; y: 0; z:1} angle: 5; } smooth: smoothing}
28 Rectangle{ color: "orange"; width: standardWidth; height: standardHeight; transform: Rotation { origin.x: 0; origin.y: 0 ; axis{x: 0; y: 0; z:1} angle: 10; } smooth: smoothing }
29 Rectangle{ color: "yellow"; width: standardWidth; height: standardHeight; transform: Rotation { origin.x: 0; origin.y: 0 ; axis{x: 0; y: 0; z:1} angle: 15; } smooth: smoothing }
30 Rectangle{ color: "blue"; width: standardWidth; height: standardHeight; transform: Rotation { origin.x: 0; origin.y: 0 ; axis{x: 0; y: 0; z:1} angle: 20; } smooth: smoothing }
31 Rectangle{ color: "green"; width: standardWidth; height: standardHeight; transform: Rotation { origin.x: standardWidth/2; origin.y: standardWidth/2 ; axis{x: 0; y: 0; z:1} angle: 15; } smooth: smoothing}
32 Rectangle{ color: "indigo"; width: standardWidth; height: standardHeight; transform: Rotation { origin.x: 0; origin.y: 0 ; axis{x: 0; y: 0; z:1} angle: 30; } smooth: smoothing}
33 Rectangle{ color: "violet"; width: standardWidth; height: standardHeight; transform: Rotation { origin.x: 0; origin.y: 0 ; axis{x: 0; y: 0; z:1} angle: 35; } smooth: smoothing }
34 Rectangle{ color: "light green"; width: standardWidth; height: standardHeight; transform: Rotation { origin.x: 0; origin.y: 0 ; axis{x: 0; y: 0; z:1} angle: 40; } smooth: smoothing }
35 }
36 }
37 }
38 }