Juventus
Well juventus is a football club and even most of you are fan of juventus so decide to post the source code so you can draw your favourite club with coding ant it also increase the motivation to do code so let's code
Module
As every post we use the same turtle module
import turtle as t
Source code
import turtle as t
t.bgcolor('black')
t.speed(1)
t.pencolor('white')
t.begin_fill()
t.fillcolor('white')
t.forward(50)
t.right(90)
t.forward(100)
for i in range(18):
t.forward(1)
t.left(-3)
t.forward(25)
t.left(-78)
t.forward(22)
t.right(112)
t.forward(18)
t.penup()
t.pendown()
for i in range(18):
t.forward(1)
t.left(3)
t.right(-10)
t.forward(73)
t.right(-90)
t.forward(34)
t.right(90)
t.forward(23)
t.end_fill()
t.penup()
t.right(90)
t.forward(100)
t.right(90)
t.pendown()
t.begin_fill()
t.fillcolor('white')
t.forward(100)
for i in range(18):
t.forward(2)
t.left(-3)
t.right(3)
t.forward(40)
t.right(60)
t.forward(22)
t.right(120)
t.forward(3)
t.forward(30)
for i in range(15):
t.forward(3)
t.left(4)
t.right(3)
t.forward(88)
t.right(90)
t.forward(25)
t.end_fill()
t.done()
I know this is a lengthy code but try to understand it for your favourite club and also comment how you like this project
See the result
My youtube channel https://youtu.be/jOU_9oUz17A
My instagram pagehttps://www.instagram.com/reel/CQd8RyDh0-T/
Comments
Post a Comment