-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathactivity.py
More file actions
66 lines (47 loc) · 995 Bytes
/
activity.py
File metadata and controls
66 lines (47 loc) · 995 Bytes
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
# import pyautogui, sys
# print('Press Ctrl-C to quit.')
# try:
# while True:
# x, y = pyautogui.position()
# positionStr = 'X: ' + str(x).rjust(4) + ' Y: ' + str(y).rjust(4)
# print(positionStr, end='')
# print('\b' * len(positionStr), end='', flush=True)
# except KeyboardInterrupt:
# print('\n')
# from turtle import *
# color('red', 'yellow')
# begin_fill()
# while True:
# forward(200)
# left(170)
# if abs(pos()) < 1:
# break
# end_fill()
# done()
# from turtle import *
# color('black', 'blue')
# begin_fill()
# while True:
# forward(200)
# backward(350)
# right(90)
# left(280)
# if abs(pos()) < 1:
# break
# end_fill()
# done()
from turtle import *
from random import randint
bgcolor('black')
x = 1
speed(0)
while True:
r = randint(0,255)
g = randint(0,255)
b = randint(0,255)
colormode(255)
pencolor(r,g,b)
fd(50 + x)
rt(90.991)
x = x+1
exitonclick()