-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcaptnamerica.py
More file actions
44 lines (37 loc) · 874 Bytes
/
captnamerica.py
File metadata and controls
44 lines (37 loc) · 874 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
41
42
43
44
import turtle
bob = turtle.Turtle()
bob.speed(0)
#WARNING! This is a prototype, so this item may have some bugs that will be fixed in future updates
def sheild(x,y,size):
bob.penup()
bob.goto(x,y)
bob.pendown()
bob.circle(size)
bob.fillcolor("red")
bob.begin_fill()
sheild(0,-200,200)
bob.end_fill()
bob.fillcolor("gray")
bob.begin_fill()
sheild(0,-170,170)
bob.end_fill()
bob.fillcolor("red")
bob.begin_fill()
sheild(0,-140,140)
bob.end_fill()
bob.fillcolor("blue")
bob.begin_fill()
sheild(0,-110,110)
bob.end_fill()
def shape(length,corners,angles,border,fill,x,y):
bob.penup()
bob.goto(x,y)
bob.color(border)
bob.pendown()
bob.fillcolor(fill)
bob.begin_fill()
for x in range(corners):
bob.forward(length)
bob.right(angles)
bob.end_fill()
shape(200,5,144,"gray",'#808080',-100,30)