-
Notifications
You must be signed in to change notification settings - Fork 0
/
IndFlag.py
112 lines (91 loc) · 1.53 KB
/
IndFlag.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
102
103
104
105
106
107
108
109
110
111
112
from turtle import *
import turtle
# pen = turtle.Turtle()
# print(pen.position())
# pen.pensize(5)
# pen.color("navy")
# pen.circle(60)
turtle.hideturtle()
# Mini Blue Circles
penup()
goto(0, 0)
pendown()
color("navy")
for i in range(24):
# turtle.tracer(2)
begin_fill()
circle(3)
end_fill()
penup()
forward(15)
left(15)
pendown()
penup()
goto(0, 0)
pendown()
pen = turtle.Turtle()
print(pen.position())
for i in range(24):
pen.color("navy")
pen.width(4)
pen.forward(15)
pen.left(15)
#Go to Center
# move back
print(pen.position())
# Spokes
pen.up()
pen.goto(8, 57)
pen.down()
pen.width(2)
for i in range(24):
pen.forward(50)
pen.backward(50)
pen.left(15)
print(pen.position())
pen.up()
pen.goto(-400, 330)
# Orange Rectangle
pen.color("orange")
pen.begin_fill()
pen.forward(800)
pen.right(90)
pen.forward(200)
pen.right(90)
pen.forward(800)
pen.end_fill()
pen.up()
pen.left(90)
pen.forward(150)
print(pen.position())
# pen.down()
pen.color("green")
pen.left(90)
pen.begin_fill()
pen.forward(800)
pen.right(90)
pen.forward(200)
pen.right(90)
pen.forward(800)
pen.right(90)
pen.forward(200)
pen.end_fill()
turtle.hideturtle()
turtle.exitonclick()
# # Big Blue Circle
# penup()
# goto(0, 0)
# pendown()
# color("navy")
# begin_fill()
# circle(70)
# end_fill()
#
# # Big White Circle
# penup()
# goto(0, 0)
# pendown()
# color("white")
# begin_fill()
# circle(60)
# end_fill()