-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.py
36 lines (27 loc) · 793 Bytes
/
main.py
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
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.properties import ObjectProperty, VariableListProperty
import random
from kivy.clock import Clock
class circle1(Widget):
pass
class inner_circle(Widget):
pass
class circle2(Widget):
pass
class lines(Widget):
pass
class arc_reacter(Widget):
circlearc1 = ObjectProperty(None)
circlearc2 = ObjectProperty(None)
line1 = ObjectProperty(None)
color_code = VariableListProperty(None)
def update(self, color_code):
self.color_code = random.choice([(.811, .854, .921, 1), (.933, .968, .964, 1)])
class arc(App):
def build(self):
arcs = arc_reacter()
Clock.schedule_interval(arcs.update, 1.0/5.0)
return arcs
if __name__ == '__main__':
arc().run()