-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patharc.kv
89 lines (77 loc) · 2.54 KB
/
arc.kv
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#:kivy 1.10
#:import math math
<circle2>:
canvas:
Color:
rgba: (.811, .854, .921, 1)
Ellipse:
pos: self.pos
size: self.size
<circle1>:
canvas:
Color:
rgba: .105, .505, .627, 1
Ellipse:
pos: self.pos
size: self.size
<arc_reacter>:
circlearc1: arc1
circlearc2: arc2
canvas:
Color:
rgba: (0.478,0,0,1)
Rectangle:
pos: self.pos
size: self.size
Label:
color: (0.917, .788, .509, 1)
bold: True
font_size: 130
center_x: root.width / 2
top: root.top - 50
text: "IRON MAN"
circle1:
id: arc1
size: 200, 200
center: self.parent.center
circle2:
id: arc2
size: 150, 150
center: self.parent.center
lines:
canvas:
Color:
rgba: .403, .686, .776, 1
Line:
points: root.center_x, root.center_y + 100, root.center_x, root.center_y - 100
cap: "none"
width: 7
Line:
points: root.center_x + 100*math.sin(math.radians(36)), root.center_y - 100*math.cos(math.radians(36)), root.center_x - 100*math.sin(math.radians(36)), root.center_y + 100*math.cos(math.radians(36))
cap: "none"
width: 7
Line:
points: root.center_x + 100*math.sin(math.radians(72)), root.center_y - 100*math.cos(math.radians(72)), root.center_x - 100*math.sin(math.radians(72)), root.center_y + 100*math.cos(math.radians(72))
cap: "none"
width: 7
Line:
points: root.center_x + 100*math.sin(math.radians(108)), root.center_y - 100*math.cos(math.radians(108)), root.center_x - 100*math.sin(math.radians(108)), root.center_y + 100*math.cos(math.radians(108))
cap: "none"
width: 7
Line:
points: root.center_x + 100*math.sin(math.radians(144)), root.center_y - 100*math.cos(math.radians(144)), root.center_x - 100*math.sin(math.radians(144)), root.center_y + 100*math.cos(math.radians(144))
cap: "none"
width: 7
circle1:
id: arc1
size: 100, 100
center: self.parent.center
inner_circle:
canvas:
Color:
rgba: root.color_code
Ellipse:
pos: self.pos
size: self.size
size: 50, 50
center: self.parent.center