Love Batman, who doesn’t? Want to draw batman logo in python turtle. Today In this python tutorial I will show you how to draw batman logo in python turtle it will be an amazing python tutorial.
Batman is one of the most popular DC superheroes and I love Batman so I have created this python program which will draw batman logo using python turtle I will provide you the code for this program so read till the end.
We will use turtle to draw the batman logo, which is a python library. It is a popular graphics library in python. You can draw anything with this library, so now let’s see how to draw batman logo in python.
Draw Batman Logo In Python Turtle Code
import turtle #initialize method bat = turtle.Turtle() #size of pointer and pen bat.turtlesize(1, 1, 1) bat.pensize(3) #screen info wn = turtle.Screen() wn.bgcolor("white") wn.title("BATMAN") #colour bat.color("yellow", "black") #begin filling color bat.begin_fill() #turn1 bat.left(90) # turn pointer direction to left of 90' bat.circle(50, 85) #draw circle of radius = 50 and 85' bat.circle(15, 110) bat.right(180) #turn 2 bat.circle(30, 150) bat.right(5) bat.forward(10) #draw forward line of 10 units #turn 3 bat.right(90) bat.circle(-70, 140) bat.forward(40) bat.right(110) #turn 4 bat.circle(100, 30) bat.circle(30, 100) bat.left(50) bat.forward(50) bat.right(145) #turn5 bat.forward(30) bat.left(55) bat.forward(10) #reverse #turn 5 bat.forward(10) bat.left(55) bat.forward(30) #turn 4 bat.right(145) bat.forward(50) bat.left(50) bat.circle(30, 100) bat.circle(100, 30) #turn 3 bat.right(90) bat.right(20) bat.forward(40) bat.circle(-70, 140) #turn 2 bat.right(90) bat.forward(10) bat.right(5) bat.circle(30, 150) #turn 1 bat.left(180) bat.circle(15, 110) bat.circle(50, 85) #end color filling bat.end_fill() #end the turtle method turtle.done()
Above is the code for drawing batman logo in python turtle, you can copy and paste the code in a python file and run the file in your computer or use an online python compiler.
You don’t have to install the turtle library because it comes installed when you install python on your computer. You just have to run the code after running, below is the final output you should get.
This is the final output. I hope you successfully ran this program. If you don’t have python installed, you can read this guide: Install and setup python on your computer.
This was the python tutorial to draw batman logo in python using turtle library. I hope you liked it and found it helpful. Do try and run this program on your computer and show it to Batman fans.
Here are some more python tutorials you will find interesting:
- Draw doraemon in python using turtle code.
- Draw shinchan in python using turtle.
- Wish happy birthday using python turtle.
I hope you found what you were looking for from this tutorial. If you did, share it with your friends and also join our Telegram channel for future updates.
Thanks for reading, I am batman!!