-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanda.py
59 lines (55 loc) · 831 Bytes
/
panda.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
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 2 23:42:29 2023
@author: Grow With Code
"""
import turtle
t = turtle.Turtle()
def ring(col, rad):
t.fillcolor(col)
t.begin_fill()
t.circle(rad)
t.end_fill()
t.up()
t.setpos(-65, 95)
t.down
ring('black', 55)
t.up()
t.setpos(65, 95)
t.down()
ring('black', 55)
t.up()
t.setpos(0, 50)
t.down()
ring('white', 85)
t.up()
t.setpos(-42, 103)
t.down
ring('black', 28)
t.up()
t.setpos(42, 103)
t.down()
ring('black', 28)
t.up()
t.setpos(-42, 105)
t.down()
ring('white', 14)
t.up()
t.setpos(42, 105)
t.down()
ring('white', 14)
t.up()
t.setpos(0, 93)
t.down
ring('black', 5)
t.up()
t.setpos(0, 93)
t.down()
t.right(90)
t.circle(5, 180)
t.up()
t.setpos(0, 93)
t.down()
t.left(360)
t.circle(5, -180)
t.hideturtle()