-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.py
More file actions
40 lines (34 loc) · 794 Bytes
/
example.py
File metadata and controls
40 lines (34 loc) · 794 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
from turtle import *
color('yellow', 'blue')
begin_fill()
while True:
forward(100)
left(121)
if abs(pos()) < 1:
break
end_fill()
done()
# def talloval(r): # Verticle Oval
# left(45)
# for loop in range(2): # Draws 2 halves of ellipse
# circle(r,90) # Long curved part
# circle(r/2,90) # Short curved part
# def flatoval(r): # Horizontal Oval
# right(45)
# for loop in range(2):
# circle(r,90)
# circle(r/2,90)
# bgcolor("black")
# pen(pencolor="cyan")
# # shape("circle")
# speed(100)
# # circle(100, 190)
# # shapesize(15, 5, 10)
# # stamp()
# # flatoval(200)
# # talloval(200)
# rad = 200
# for i in range(2):
# # two arcs
# circle(rad // 4, 60)
# circle(rad // 2, 60)