-
Notifications
You must be signed in to change notification settings - Fork 0
/
LOGO2.py
76 lines (61 loc) · 1.34 KB
/
LOGO2.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
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
import turtle
myPen = turtle.Turtle()
tabula = turtle.Screen()
tabula.bgcolor("black")
myPen.speed(0)
side=1 #dlzka strany
y=50 #pocet opakovani v loope
x=90.5 #otocenie korytnacky v loope
myPen.pencolor("dimgray")
for i in range (1,y):
myPen.forward(side)
myPen.left(x)
side=side+1
myPen.pencolor("gray")
for i in range (1,y):
myPen.forward(side)
myPen.left(x)
side = side + 1
myPen.pencolor("darkgray")
for i in range (1,y):
myPen.forward(side)
myPen.left(x)
side = side + 1
myPen.pencolor("silver")
for i in range (1,y):
myPen.forward(side)
myPen.left(x)
side = side + 1
myPen.pencolor("lightgray")
for i in range (1,y):
myPen.forward(side)
myPen.left(x)
side = side + 1
myPen.pencolor("gainsboro")
for i in range (1,y):
myPen.forward(side)
myPen.left(x)
side = side + 1
myPen.pencolor("whitesmoke")
for i in range (1,y):
myPen.forward(side)
myPen.left(x)
side = side + 1
myPen.pencolor("white")
for i in range (1,y):
myPen.forward(side)
myPen.left(x)
side = side + 1
#myPen.pencolor("white")
for i in range (1,y):
myPen.forward(side)
myPen.left(x)
side = side + 1
#myPen.pencolor("white")
for i in range (1,y):
myPen.forward(side)
myPen.left(x)
side = side + 1
myPen.forward(200)
myPen.hideturtle()
tabula.mainloop()