• Home
  • Tutorials
    • Python
    • Machine Learning
    • Pygame
    • Python Quiz
  • Python Projects
  • Interview Questions
  • PYTHON HANDWRITTEN NOTES
    • Python Short Notes
    • Complete DSA Notes
    • Python Detailed Notes
  • Python Compiler
    • All Editors
    • Turtle Compiler
    • Online Java Editor
    • Online C++ Editor
    • Online C Editor
  • Contact Us
    • About Us
    • Policy
  • Our Android Apps
    • Unlimited Python Exercises App
    • Complete Linux Commands App

CopyAssignment

We are Python language experts, a community to solve Python problems, we are a 1.2 Million community on Instagram, now here to help with our blogs.

×

Draw PUBG Logo Using Python Turtle

 Vatsal Rakholiya  May 17, 2022
Draw PUBG Logo Using Python Turtle

Introduction

You’ve come to the right place if you want to learn how to draw the PUBG Logo Using Python Turtle. PUBG is one of the most popular games. It is a multiplayer online warfare game, thus I decided to do a lesson on making its logo in Python today.

Creating a PUBG Logo :

Step 1. Import turtle library

import turtle

Step 2. Creating a turtle object. And set up the background color using bgcolor() Function

t = turtle.Turtle()
turtle.bgcolor("black")
t.color("white")

Step 3. Creating a Rectangle to fit the logo in it

def rect():
    t.pensize(9)
    t.forward(170)
    t.left(45)
    t.forward(6)
    t.left(45)
    t.forward(170)
    t.left(45)
    t.forward(6)
    t.left(45)
    t.forward(330)
    t.left(45)
    t.forward(6)
    t.left(45)
    t.forward(170)
    t.left(45)
    t.forward(6)
    t.left(45)
    t.forward(170)

We create a function called react() to create a rectangle shape.

Step 4. Creating a Function called four_corner_lines()

def four_corner_lines():
    t.pensize(12)
    t.penup()
    t.forward(180)
    t.left(90)
    t.forward(35)
    t.left(90)
    t.pendown()
    t.forward(12)
    t.penup()
    t.forward(344)
    t.pendown()
    t.forward(17)
    t.penup()
    t.right(90)
    t.forward(105)
    t.right(90)
    t.pendown()
    t.forward(17)
    t.penup()
    t.forward(344)
    t.pendown()
    t.forward(12)

This function will create 4 lines outside the rectangle. 2 on the left and 2 on the right.

Step 5. PUBG word in the rectangle. Starts with the P

def p():
    t.penup()
    t.left(180)
    t.forward(280)
    t.pendown()
    t.forward(40)
    t.left(90)
    t.forward(100)
    t.left(180)
    t.forward(52)
    t.right(90)
    t.forward(40)
    t.left(90)
    t.forward(47)

Step 6. Drawing the letter U

def u():
    t.penup()
    t.right(90)
    t.forward(32)
    t.right(90)
    t.pendown()
    t.forward(98)
    t.left(90)
    t.forward(40)
    t.left(90)
    t.forward(98)

Step 7. Drawing the Letter B

def b():
    t.penup()
    t.right(90)
    t.forward(35)
    t.pendown()
    t.forward(45)
    t.right(90)
    t.forward(43)
    t.right(45)
    t.forward(5)
    t.right(45)
    t.forward(40)
    t.left(90)
    t.forward(5)
    t.left(90)
    t.forward(40)
    t.right(45)
    t.forward(5)
    t.right(45)
    t.forward(40)
    t.right(90)
    t.forward(45)
    t.right(90)
    t.forward(96)

Step 8. Drawing the letter G

def g():
    t.penup()
    t.right(180)
    t.forward(53)
    t.left(90)
    t.forward(98)
    t.pendown()
    t.forward(25)
    t.right(90)
    t.forward(45)
    t.right(90)
    t.forward(45)
    t.right(90)
    t.forward(95)
    t.right(90)
    t.forward(40)

Step 9. Now we are calling all the functions to complete the logo.

rect()
four_corner_lines()
p()
u()
b()
g()

Source Code to Draw the PUBG Logo using Python Turtle

import turtle

t = turtle.Turtle()

turtle.bgcolor("black")
t.color("white")

def rect():
    t.pensize(9)
    t.forward(170)
    t.left(45)
    t.forward(6)
    t.left(45)
    t.forward(170)
    t.left(45)
    t.forward(6)
    t.left(45)
    t.forward(330)
    t.left(45)
    t.forward(6)
    t.left(45)
    t.forward(170)
    t.left(45)
    t.forward(6)
    t.left(45)
    t.forward(170)

def four_corner_lines():
    t.pensize(12)
    t.penup()
    t.forward(180)
    t.left(90)
    t.forward(35)
    t.left(90)
    t.pendown()
    t.forward(12)
    t.penup()
    t.forward(344)
    t.pendown()
    t.forward(17)
    t.penup()
    t.right(90)
    t.forward(105)
    t.right(90)
    t.pendown()
    t.forward(17)
    t.penup()
    t.forward(344)
    t.pendown()
    t.forward(12)

def p():
    t.penup()
    t.left(180)
    t.forward(280)
    t.pendown()
    t.forward(40)
    t.left(90)
    t.forward(100)
    t.left(180)
    t.forward(52)
    t.right(90)
    t.forward(40)
    t.left(90)
    t.forward(47)

def u():
    t.penup()
    t.right(90)
    t.forward(32)
    t.right(90)
    t.pendown()
    t.forward(98)
    t.left(90)
    t.forward(40)
    t.left(90)
    t.forward(98)

def b():
    t.penup()
    t.right(90)
    t.forward(35)
    t.pendown()
    t.forward(45)
    t.right(90)
    t.forward(43)
    t.right(45)
    t.forward(5)
    t.right(45)
    t.forward(40)
    t.left(90)
    t.forward(5)
    t.left(90)
    t.forward(40)
    t.right(45)
    t.forward(5)
    t.right(45)
    t.forward(40)
    t.right(90)
    t.forward(45)
    t.right(90)
    t.forward(96)

def g():
    t.penup()
    t.right(180)
    t.forward(53)
    t.left(90)
    t.forward(98)
    t.pendown()
    t.forward(25)
    t.right(90)
    t.forward(45)
    t.right(90)
    t.forward(45)
    t.right(90)
    t.forward(95)
    t.right(90)
    t.forward(40)

rect()
four_corner_lines()
p()
u()
b()
g()

turtle.done()

Output

output to draw PUBG Logo Using Python Turtle
Output

As you can see, we were able to correctly draw the PUBG logo with Python Turtle. I hope you were successful in running this software. If you’re looking for more fantastic turtle lessons, check out this: Amazing Python Turtle Codes.


Also Read:

  • Case conversion in python assignment expert
  • Complete Python Roadmap for Beginners in 2022
  • Calculator Program in Python | On Different IDEs
  • Boruvka’s Algorithm in Python
  • Game in Python Assignment Expert
  • Guessing number in python assignment expert
  • Make it equal in Python assignment expert
  • New Internship for Python Freshers | Apply Now
  • Naive Bayes in Machine Learning
  • Roti Prata SPOJ Problem Solution – Complete Solution Approach with C++ and Java Code
  • Lee Algorithm in Python | Solution to Maze Routing Problem in Python
  • Free Python Course | Loved By Over 7.7 Million People
  • Top 10 Python Projects for Final year Students
  • 10 Tkinter Projects for Beginners
  • Miles Per Gallon Python Program
  • Get a New Job with Google: Course by Google
  • Top 5 Websites To Learn Programming in 2022
  • FAQs
  • Automate Data Mining With Python
  • ASCII Art in Python with art library
  • Create and Print a List of Prime Numbers in Python
  • Support Vector Machine(SVM) in Machine Learning
  • Python Increment By 1
  • Vending Machine with Python Code
  • I Love You Text in ASCII Art
  • Top 5 Youtube Channels to Learn Programming in 2022
  • Python Turtle Shapes- Square, Rectangle, Circle
  • Python OOP Projects | Source code and example
  • Internship at Google: Apply Now | Google STEP Internship
  • Python Turtle Commands and All Methods

Keywords->python turtle design, turtle, design, 12th class python project, python for kids, 12th class, beautiful turtle designs, python

Share:
Avatar of Vatsal Rakholiya

Author: Vatsal Rakholiya

Post navigation

← Draw Snowflakes using Python Turtle
Draw WhatsApp Logo Using Python Turtle →

Categories

allcategorites assignment competitive programming data structures and algorithms final year project free-course game in python general-python github-copy gui python projects java job Machine Learning ml ai ds project pygame tutorial python-error python projects python simple programs python turtle python very small program assignments tutorial
assignment advertisement

Our Services

Contact us on WhatsApp at +91-9760648231 for help with your-

python project
python assignment
python management assignment
python management project
python freelancer
assignment helper
machine learning expert
machine learning helper
ai ml helper
ai ml expert
ml freelancer
machine learning homework helper
final year project
project helper
assignment expert
project expert
programming expert
homework helper
homework expert

Search….

Assignment Help

assignment advertisement

SiteMap

Python

Machine Learning

Pygame

Data Structures and Algorithms(Python)

Python Turtle

Games with Python

All Blogs On-Site

Python Compiler(Interpreter)

Online Java Editor

Online C++ Editor

Online C Editor

All Editors

Services(Freelancing)

Recent Posts

  • Case conversion in python assignment expert
  • Complete Python Roadmap for Beginners in 2022
  • Calculator Program in Python | On Different IDEs
  • Boruvka’s Algorithm in Python
  • Game in Python Assignment Expert

Python Handwritten Notes

Click Here to buy now

Python Assignment Help

We also deal with Python Assignments, Homeworks, and Projects. Click Here, to get your Python work done by experts.

RSS Feed

Click Here to check the RSS feed

Tags

12th class python project algorithms Complete Game In PyGame and Python data structures data structures and algorithms design django game in python gui heap sort heap sort algorithm heap sort in python heap sort time complexity heap sort working machine learning machine learning project make snake game in python ml OTP Sneder projects pygame pygame python pygame tutorial python python for kids python project python projects Python SMS python snake game code copy and paste python snake game code without pygame python snake game tutorial python snake tutorial Python Turtle Python Turtle Design python turtle projects Python Web scraping Selenium Send OTP Using Python tkinter turtle Turtle Design turtle python turtle python projects web-development web scraping
close button

© Copyright 2020 www.copyassignment.com. All rights reserved. Developed by copyassignment