blob: e3fd3824ac31bfaba81ccc9009754276c67a36f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
Item {
property real value : 0
width: 210; height: 210
Image { id: Background; source: "background.svg" }
Image {
source: "needle_shadow.svg"
transform: Rotation {
originX: 104; originY: 102
angle: NeedleRotation.angle
}
}
Image {
id: Needle
source: "needle.svg"
transform: Rotation {
id: NeedleRotation
originX: 102; originY: 98
angle: -130
angle: Follow {
spring: 1.4
damping: .15
source: Math.min(Math.max(-130, value*2.2 - 130), 133)
}
}
}
Image { source: "overlay.svg" }
}
|