-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRealHomeDesign.py
More file actions
165 lines (122 loc) · 2.27 KB
/
Copy pathRealHomeDesign.py
File metadata and controls
165 lines (122 loc) · 2.27 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
import turtle
# Screen Setup
screen = turtle.Screen()
screen.setup(1200,720)
screen.bgcolor("green")
# Pen Setup
pen = turtle.Turtle()
pen.shapesize(3,3,3)
pen.shape("turtle")
pen.speed(0)
# Ghar ka outer
pen.penup()
pen.goto(-400,0)
pen.pendown()
pen.color("red", "deepskyblue")
pen.begin_fill()
for i in range(2):
pen.forward(800)
pen.left(90)
pen.forward(370)
pen.left(90)
pen.end_fill()
# Home inner Part
pen.penup()
pen.goto(-100,0)
pen.pendown()
pen.color("red", "orange")
pen.begin_fill()
for i in range(2):
pen.forward(200)
pen.left(90)
pen.forward(200)
pen.left(90)
pen.end_fill()
# Ghar ki Chimeney
pen.penup()
pen.goto(50,200)
pen.pendown()
pen.color("red", "brown")
pen.begin_fill()
for i in range(2):
pen.forward(50)
pen.left(90)
pen.forward(130)
pen.left(90)
pen.end_fill()
# Ghar Ki Topi
pen.penup()
pen.goto(-100,200)
pen.pendown()
pen.color("brown", "firebrick")
pen.begin_fill()
for i in range(3):
pen.forward(200)
pen.left(120)
pen.end_fill()
# Door of The ghar
pen.penup()
pen.goto(-25,0)
pen.pendown()
pen.color("brown", "red")
pen.begin_fill()
for i in range(2):
pen.forward(50)
pen.left(90)
pen.forward(100)
pen.left(90)
pen.end_fill()
# Left Window
pen.penup()
pen.goto(-70,120)
pen.pendown()
pen.pensize(3)
pen.color("black", "white")
pen.begin_fill()
for i in range(4):
pen.forward(40)
pen.left(90)
pen.end_fill()
# Vertical Line
pen.forward(20)
pen.left(90)
pen.forward(40)
# pen.stamp()
# Horizontal line
pen.penup()
pen.goto(-70, 140)
pen.pendown()
pen.right(90)
pen.forward(40)
# Right Window
pen.penup()
pen.goto(30,120)
pen.pendown()
pen.color("black", "white")
pen.begin_fill()
for i in range(4):
pen.forward(40)
pen.left(90)
pen.end_fill()
# Sun
pen.penup()
pen.goto(-250, 250)
pen.pendown()
pen.color("red", "yellow")
pen.begin_fill()
pen.circle(40)
pen.end_fill()
# Clouds
pen.penup()
pen.goto(250, 250)
pen.pendown()
pen.color("white", "white")
pen.begin_fill()
pen.circle(40)
pen.penup()
pen.goto(270, 230)
pen.pendown()
pen.circle(40)
pen.end_fill()
pen.hideturtle()
turtle.mainloop()