Pythondex
Turtle Python Programs

Draw BMW Logo In Python Turtle With Code

Last updated June 12, 2023 by Jarvis Silva

In this tutorial we will see how to draw the BMW Car logo using python turtle with code, BMW is one of the most popular and luxurious car, It is one of my favorite car so today I have decided to create a tutorial on drawing its logo in python.

We will use the turtle module to create this python program, turtle is a GUI library with the help of this library you can draw anything in python. 

Python Code To Draw BMW Logo



import turtle as t

# t.setup(600, 600)

t.setpos(0,-250)
t.pensize(8)
t.fillcolor('black')
t.begin_fill()
t.pencolor('gray')
t.circle(250)
t.end_fill()

t.pensize(3)
t.up()
t.setpos(0,-150)
t.down()
t.fillcolor('white')
t.begin_fill()
t.circle(150)
t.end_fill()

t.fillcolor('deepskyblue')
t.begin_fill()
t.circle(150, 90)
t.left(90)
t.pensize(2)
t.pencolor('black')
t.forward(150)
t.left(90)
t.forward(150)
t.end_fill()
t.up()
t.setpos(-150,0)
t.down()
t.begin_fill()
t.pensize(3)
t.pencolor('gray')
t.circle(150, -90)
t.left(90)
t.pensize(2)
t.pencolor('black')
t.forward(150)
t.right(90)
t.forward(150)
t.end_fill()

# letters:

t.pensize(12)
t.pencolor('white')

# B
t.up()
t.setpos(0,0)
t.right(35)
t.forward(165)
t.right(5.2)
t.down()
t.forward(64)
t.right(90)
t.forward(35)
t.circle(-16,180)
t.forward(35)
t.right(180)
t.forward(35)
t.circle(-16,180)
t.forward(35)

# M
t.up()
t.setpos(-32,165)
t.setheading(90)
t.down()
t.forward(62)
t.setpos(0,180)
t.setpos(32,227)
t.right(180)
t.forward(62)

# W
t.up()
t.setpos(0,0)
t.setheading(52)
t.forward(228)
t.down()
t.right(170)
t.forward(65)
t.left(142)
t.forward(50)
t.right(142)
t.forward(50)
t.left(142)
t.forward(65)

t.hideturtle()
t.done()


Above is the python code for drawing the BMW logo, now let’s see how this python code works:

  • Import the turtle module and rename it as ‘t’.
  • Set the initial position of the turtle to (0, -250).
  • Set the pen size to 8 and fill the circle with black color.
  • Draw a gray circle with a radius of 250.
  • Reduce the pen size to 3.
  • Lift the pen up and set the position to (0, -150).
  • Put the pen down and fill the inner circle with white color.
  • Draw a circle with a radius of 150.
  • Fill the quarter section of the circle with a deepskyblue color.
  • Draw a smaller quarter circle with a radius of 150 and fill it.
  • Draw two lines to complete the letter ‘B’.
  • Set the pen size to 12 and the color to white for drawing letters.
  • Draw the letter ‘B’.
  • Move to the starting position for the letter ‘M’.
  • Draw the letter ‘M’.
  • Move to the starting position for the letter ‘W’.
  • Draw the letter ‘W’.
  • Hide the turtle and end the program execution.

Now you can run this program you need to have python installed on your computer, If you don’t have then follow this guide: Install and setup python on your computer or you can use this online python compiler.

When run the program and it will open a new window and it will start drawing the BMW Logo and below is the finished drawing of the logo.

BMW Logo Drawing In Python

So this was the tutorial on drawing the BMW logo in python, I hope you found this tutorial helpful and useful. Do share this tutorial with your friends who might be interested in this program.

Here are some more python drawing tutorials for you:

I hope you found what you were looking for from this tutorial, and if you want more python guides and tutorials like this, do join our Telegram channel for future updates.

Thanks for reading, have a nice day 🙂