Posts

Showing posts from September, 2022

Codes for drawing smiley face in python

Before you read section # you can follow us by  Clicking here   Draw smiling face emoji using Turtle in Python Prerequisite: Python Turtle Basics Turtle is an inbuilt module in Python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle. To move turtle, there are some functions i.e forward(), backward(), etc. In this article, we will see how to draw a smiling face emoji using the Turtle module. 1.)To draw Smile face : Following steps are used : Import turtle. Make objects. Draw a circle and fill yellow color. Draw eyes with two circles and fill white and black color respectively. Draw circle for nose and fill black color. Draw semi circle for mouth. Draw semi circle for tongue and fill red color . Below is the implementation : # Python program to draw smile  # face emoji using turtle import turtle   # turtle object pen = turtle.Turtle()   # function for creation of eye def eye(col, rad): ...

Codes for drawing Google logo in python

Image
 Codes for drawing Google logo in python by using turtle graphics...    We can draw many logo in python  by using codes... Python is a CUI....BASED...... SO, TODAY WE ARE GOING TO KNOW HOW TO DRAW GOOGLE LOGO IN PYTHON ............... BEFORE READING THIS......SECTION........... ____________________________________________ You can copy these codes. You can follow our blog by  Clicking here You can do comment If you have some query. _____________________________________________ Codes starts from here import turtle #get the instance of turtle t=turtle.Turtle() #select color t.color('#4285F4','#4285F4') ## RBG value of color #change the pen size t.pensize(5) #change the drawing speed t.speed(3) t.forward(120) t.right(90) t.circle(-150,50) ## first circle for red color t.color('#0F9D58') t.circle(-150,100) t.color('#F4B400') t.circle(-150,60) t.color('#DB4437','#DB4437') t.begin_fill() t.circle(-150,100) t.right(90) t.forward(50) t.right(90) ...

Codes for drawing free fire logo in python

Codes for drawing free fire logo in python by using turtle graphics. #follow us #real coder  Codes starts from here. import turtle turtle.bgcolor('black') turtle.pencolor('white') turtle.speed(0) turtle.up() turtle.bk(600) turtle.lt(90) turtle.down() turtle.fillcolor('white') turtle.begin_fill() turtle.fd(200) turtle.rt(90) turtle.fd(120) turtle.rt(90) turtle.fd(40) turtle.rt(90) turtle.fd(80) turtle.lt(90) turtle.fd(40) turtle.lt(90) turtle.fd(80) turtle.rt(90) turtle.fd(40) turtle.rt(90) turtle.fd(80) turtle.lt(90) turtle.fd(80) turtle.rt(90) turtle.fd(40) turtle.end_fill() turtle.up() turtle.bk(140) turtle.down() turtle.rt(90) turtle.fd(200) turtle.begin_fill() turtle.rt(90) turtle.fd(80) turtle.circle(-50,180) turtle.lt(120) turtle.fd(100) turtle.rt(90) turtle.fd(40) turtle.rt(90) turtle.fd(110) turtle.seth(270) turtle.fd(90) turtle.rt(90) turtle.fd(40) turtle.end_fill() turtle.up() turtle.bk(40) turtle.rt(90) turtle.fd(140) turtle.down() turtle.fillcolor(...

How to draw PUBG logo in python

 Drawing PUBG logo by using turtle graphics ... Codes for drawing PUBG logo in python Codes are:- 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()     ...