Google drive is a great application of google to store your data(files, images, notes, etc). In this post, we will see how we can draw google drive using python. So let's drive into the code without wasting any time
Code:
import turtle as t
t.hideturtle()
# blue part
t.begin_fill()
t.fillcolor('#4688F4')
t.forward(170)
t.left(60)
t.forward(50)
t.left(120)
t.forward(220)
t.left(120)
t.forward(50)
t.end_fill()
# green part
t.begin_fill()
t.fillcolor('#1FA463')
t.left(120)
t.forward(200)
t.left(120)
t.forward(50)
t.left(60)
t.forward(150)
t.left(60)
t.forward(50)
t.end_fill()
t.penup()
t.left(120)
t.forward(200)
t.left(120)
t.forward(50)
t.pendown()
# yellow part
t.begin_fill()
t.fillcolor('#FFD04B')
t.left(125)
t.forward(160)
t.left(55)
t.forward(53)
t.left(126)
t.forward(163)
t.end_fill()
t.done()
Comments
Post a Comment