Open In App

Python – Draw “GFG” logo using Turtle Graphics

Last Updated : 12 Sep, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

Prerequisites: Turtle Programming in Python

Turtle is a Python feature like a drawing board, which let us command a turtle to draw all over it! We can use many turtle functions which can move the turtle around. Turtle comes into the turtle library. The turtle module can be used in both object-oriented and procedure-oriented ways.

Some of the commonly used methods are:

  • forward(length): moves the pen in the forward direction by x unit.
  • backward(length): moves the pen in the backward direction by x unit.
  • right(angle): rotate the pen in the clockwise direction by an angle x.
  • left(angle): rotate the pen in the anticlockwise direction by an angle x.
  • penup(): stop drawing of the turtle pen.
  • pendown(): start drawing of the turtle pen.

In this article, we will be drawing the logo of GeeksforGeeks which looks like this – 
 

gfg-logo

 

Approach :

 

  • Importing Turtle.
  • Forming a window screen with size and color.
  • Then start to draw the logo:
    • Form ‘C’ in the backward direction
    • line 90 degree up
    • line 90 degree right
    • line 90 degree down
    • Form ‘C’ in forwarding direction

 

Below is the implementation.

 

Python3




# importing turtle for graphics
import turtle
  
# Forming the window screen
tut = turtle.Screen()
  
# background color green
tut.bgcolor("White")
  
# object
pen = turtle.Turtle()
  
#speed of pen
pen.speed(10)
  
# object color
pen.color("Green")
  
# object width
pen.width(10)
tut = turtle.Screen()
  
  
# Code for symbol
# backward C
for x in range(180):
    pen.forward(1)
    pen.right(1)
  
# up
pen.right(90)
pen.forward(50)
  
# right
pen.right(90)
pen.forward(130)
  
# down
pen.right(90)
pen.forward(50)
pen.left(90)
  
# forward C
for x in range(180):
    pen.backward(1)
    pen.right(1)
  
turtle.done()


 
Output :
 

gfg logo

 



Similar Reads

Python - Write "GFG" using Turtle Graphics
IN this article we will learn how to write "GFG" using Turtle Graphics in Python. For that lets first know what is Turtle Graphics. Turtle graphicsbackward(length): moves the pen in the backward direction by x unit.right(angle): rotate the pen in the clockwise direction by an angle x.left(angle): rotate the pen in the anticlockwise direction by an
2 min read
Python - Draw Hexagon Using Turtle Graphics
In this article, we will learn how to make a Hexagon using Turtle Graphics in Python. For that lets first know what is Turtle Graphics. Turtle graphics Turtle is a Python feature like a drawing board, which let us command a turtle to draw all over it! We can use many turtle functions which can move the turtle around. Turtle comes in the turtle libr
2 min read
Python - Draw Star Using Turtle Graphics
In this article, we will learn how to make a Star using Turtle Graphics in Python. For that let's first know what is Turtle Graphics. Turtle graphics Turtle is a Python feature like a drawing board, which let us command a turtle to draw all over it! We can use many turtle functions which can move the turtle around. Turtle comes into the turtle libr
2 min read
Python - Draw Octagonal shape Using Turtle Graphics
In this article, we will learn how to Make an Octagon using Turtle Graphics in Python. For that lets first know what is Turtle Graphics. Turtle graphicsbackward(length): moves the pen in the backward direction by x unit.right(angle): rotate the pen in the clockwise direction by an angle x.left(angle): rotate the pen in the anticlockwise direction b
2 min read
Draw Panda Using Turtle Graphics in Python
Turtle is an inbuilt module in Python. It provides: Drawing using a screen (cardboard).Turtle (pen). To draw something on the screen, we need to move the turtle (pen), and to move the turtle, there are some functions like the forward(), backward(), etc. Prerequisite: Turtle Programming Basics Draw Panda Using Turtle Graphics In this section, we wil
2 min read
Draw Heart Using Turtle Graphics in Python
Turtle is an inbuilt module in Python. It provides: Drawing using a screen (cardboard).Turtle (pen). To draw something on the screen, we need to move the turtle (pen) and to move the turtle, there are some functions like the forward(), backward(), etc Prerequisite: Turtle Programming Basics Draw Heart Using Turtle Graphics In this section, we will
2 min read
Draw Rainbow using Turtle Graphics in Python
Turtle is an inbuilt module in Python. It provides: Drawing using a screen (cardboard).Turtle (pen). To draw something on the screen, we need to move the turtle (pen), and to move the turtle, there are some functions like the forward(), backward(), etc. Prerequisite: Turtle Programming Basics Draw Rainbow Using Turtle Graphics In this section, we w
2 min read
Draw Spiralling Circles Using Turtle Graphics in Python
Turtle is an inbuilt module of python. It enables us to draw any drawing by a turtle, methods defined in the turtle module, and by using some logical loops. To draw something on the screen(cardboard) just move the turtle(pen). To move turtle(pen) there are some functions i.e forward(), backward(), etc. Approach: Import and create a turtle instance.
1 min read
Draw Colorful Spiral Web Using Turtle Graphics in Python
Prerequisite: Turtle Basics “Turtle” is a Python feature like a drawing board, which lets us command a turtle to draw all over it. This comes packed with the standard Python package and need not be installed externally. Methods used: forward(value): moves the turtle in the forward direction.turtle.Pen(): setup the turtle penspeed(value): changes th
1 min read
Draw Diamond shape using Turtle graphics in Python
In this article, we are going to learn how to draw the shape of a Diamond using turtle graphics in Python. Turtle graphics: forward(length): moves the pen in the forward direction by x unit.right(angle): rotate the pen in the clockwise direction by an angle x.left(angle): rotate the pen in the anticlockwise direction by an angle x. Approach: Import
2 min read
Article Tags :
Practice Tags :