Ticker

6/recent/ticker-posts

Advertisement

Draw Adidas logo in python

 

Adidas logo, python

Welcome back, everyone, to another article of  drawing with python turtle library. So last time we took a look at how to draw Corona virus shape Using python turtle library. Today, we're going to turn our attention to drawing Adidas logo with turtle library in python. So let's get started.


Source code:

import turtle

# Create a screen

screen = turtle.Screen()

# for create drawer for drawing

t = turtle.Turtle()

#rset a drawer speed

t.speed(11)

# for drawing a first half circle

t.begin_fill()

t.circle(100, 90, 200)

t.right(270)

t.circle(100, 90, 200)

t.end_fill()

# for second half circle

t.up()

t.goto(-10, 0)

t.down()

t.setheading(45)

t.begin_fill()

t.circle(100, 90, 200)

t.right(270)

t.circle(100, 90, 270)

t.end_fill()

#for third half circle

t.up()

t.goto(-20,0)

t.down()

t.setheading(90)

t.begin_fill()

t.circle(100, 90, 200)

t.right(270)

t.circle(100, 90, 200)

t.end_fill()

# for creating first straight  white line

t.pensize(10)

t.up()

t.color("white")

t.goto(-200, 56)

t.down()

t.forward(400)

# for creating second straight  white line

t.pensize(10)

t.up()

t.color("white")

t.goto(-200, 40)

t.down()

t.forward(400)

# # for creating third straight  white line

t.pensize(10)

t.up()

t.color("white")

t.goto(-200, 24)

t.down()

t.forward(400)

#for holding the screen

screen.mainloop()

Output:


Post a Comment

0 Comments