Draw Captain America Shield Using Python With Code

Want to draw captain america shield using python then you are at the right place, today I will show you how to draw captain america shield using python turtle. I will provide you with the code of this program, so read till the end.
Captain America is one of the most popular character in the marvel universe. I am a marvel fan. I watch each and every marvel movie, so I decided to create this program that will draw captain america shield in python.
To draw captain america shield in python I will use the turtle python library which is a GUI library and can be used to draw things you want.
Captain America Shield Python Code
import turtle
import math
ca = turtle.Turtle()
def func_1(x, y):
ca.penup()
ca.goto(x, y)
ca.pendown()
ca.setheading(0)
ca.pensize(2)
ca.speed(10)
def circle(r, color):
x_point = 0
y_pont = -r
func_1(x_point, y_pont)
ca.pencolor(color)
ca.fillcolor(color)
ca.begin_fill()
ca.circle(r)
ca.end_fill()
def star(r, color):
func_1(0, 0)
ca.pencolor(color)
ca.setheading(162)
ca.forward(r)
ca.setheading(0)
ca.fillcolor(color)
ca.begin_fill()
for i in range(5):
ca.forward(math.cos(math.radians(18)) * 2 * r) # 2cos18°*r
ca.right(144)
ca.end_fill()
ca.hideturtle()
if __name__ == '__main__':
circle(288, 'crimson')
circle(234, 'snow')
circle(174, 'crimson')
circle(114, 'blue')
star(114, 'snow')
turtle.done()
Above is the code for drawing captain america shield in python now first create a new folder for this project, open it in code editor, create a python file and copy and paste the above code in it.
The turtle library which we used comes installed when you set up python on your computer so you don’t have to install it manually but still if you get some error like turtle module is missing then use the below command.
pip install turtle
The above command will install the python turtle module. If you don’t have python installed or setup, then you can refer to this article: Install and setup python.
Now you can run this program on your computer or use an online python compiler to run it now below is the image output of this program

That is my friend is a captain america shield made using python programming, it looks cool doesn’t it.
Summary
This was the tutorial on how to draw a captain america shield using python turtle programming. I hope you found this tutorial interesting and useful.
Do share this guide with your friends and family if they watch marvel movies they are definitely going to like this.
Here are more guides about drawing in python:
- Draw doraemon using python turtle.
- Draw shinchan using python turtle.
- Draw I love you using python turtle.
- Draw Batman logo using python turtle.
- Draw Google Logo using python turtle.
- Create a fruit ninja game in python.
- Make a python calculator using turtle.
- Draw christmas tree using python.
- Draw spiderman in python programming.
I hope you found what you were looking for and if you want more python drawing tutorials like this do join our Telegram channel for future updates.
Thanks for reading, have a nice day 🙂