-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender_test_copy.py
102 lines (82 loc) · 2.06 KB
/
render_test_copy.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#import the turtle modules
import turtle
def draw_image(B = 48, A=65, X=200, Y=320):
# B = 48 #top
# A = 65 #bottom
# X = 200 #side
# Y = 320 #front
size_X = (X * 3)
size_y = (Y * 3)
start_pos = (X * 2)
# Forming the window screen
tut = turtle.Screen()
tut.setup(width=500, height=500)
# tut.tracer(0)
tut.bgcolor('black')
# window title Turtle
turtle.setworldcoordinates(-start_pos, -start_pos, size_y, size_X)
tut.title("Turtle")
turt = turtle.Turtle()
turt.speed(0)
# object color
turt.color("white")
tut = turtle.Screen()
turt.hideturtle()
turt.setheading(90)
turt.forward(A) #bottom
turt.setheading(320)
turt.forward(X) #side
turt.setheading(270)
turt.forward(A) #bottom
turt.setheading(140)
turt.forward(X) #side
turt.setheading(10)
turt.forward(Y) #front
turt.setheading(90)
turt.forward(A) #bottom
turt.setheading(320)
turt.forward(X)
turt.setheading(270)
turt.forward(A) #bottom
turt.setheading(140)
turt.forward(X)
turt.setheading(320)
turt.forward(X) #side
turt.setheading(190)
turt.forward(Y) #front
turt.setheading(90)
turt.forward(A) #bottom
turt.setheading(10)
turt.forward(Y) #front
turt.setheading(140)
turt.forward(X) #side
turt.setheading(190)
turt.forward(Y) #front
turt.setheading(115)
turt.forward(B) #top
turt.setheading(10)
turt.forward(Y) #front
turt.setheading(295)
turt.forward(B) #top
turt.setheading(45)
turt.forward(X) #side
turt.setheading(115)
turt.forward(B) #top
turt.setheading(45)
turt.back(X) #side
turt.setheading(10)
turt.back(Y)
turt.setheading(45)
turt.forward(X) #side
turt.setheading(115)
turt.back(B) #top
turt.setheading(45)
turt.back(X) #side
turt.forward(X)
turt.setheading(10)
turt.forward(Y) #front
turt.setheading(115)
turt.forward(B) #top
turt.setheading(10)
turt.back(Y) #front
turtle.done()