How to draw hindu flag by turtle . Python turtle .

import turtle 
t = turtle.Turtle()
t.up()
t.right(90)
t.forward(300)
t.down()
t.color('black')
t.begin_fill()
t.fillcolor('darkorange')
t.pensize(10)
t.forward(-550)
t.left(80)
t.forward(260)
t.left(-150)
t.forward(160)
t.left(150)
t.forward(160)
t.left(-150)
t.forward(290)
t.end_fill()
t.up()
t.right(115)
t.forward(230)
t.down()
t.pensize(10)
t.begin_fill()
t.fillcolor('darkorange')
t.circle(10)
t.end_fill()

Post a Comment

0 Comments