creating OM ॐ from turtle python apni programming 2021
import turtle
turtle.bgcolor("black")
t1=turtle.Turtle()
t1.pensize(0)
t1.speed(0)
t1.color("white","white")
t1.penup()
t1.setposition(0,0)
t1.pendown()
t1.begin_fill()
t1.left(20)
t1.forward(300)
t1.left(90)
t1.forward(200)
t1.left(60)
t1.forward(300)
t1.left(45)
t1.forward(200)
t1.left(165)
t1.forward(200)
t1.right(30)
t1.forward(230)
t1.right(55)
t1.forward(150)
t1.right(87.5)
t1.forward(260)
t1.left(30)
t1.left(90)
t1.end_fill()
t2=turtle.Turtle()
t2.pensize(0)
t2.speed(0)
t2.color("white","white")
t2.penup()
t2.setposition(0,0)
t2.pendown()
t2.begin_fill()
t2.right(20)
t2.forward(300)
t2.right(90)
t2.forward(200)
t2.right(60)
t2.forward(300)
t2.right(45)
t2.forward(200)
t2.right(165)
t2.forward(200)
t2.left(30)
t2.forward(230)
t2.left(55)
t2.forward(150)
t2.left(87.5)
t2.forward(260)
t2.right(30)
t2.right(90)
t2.end_fill()
t7 = turtle.Turtle()
t7.pensize(0)
t7.speed(0)
t7.color("white", "white")
t7.penup()
t7.setposition(-50, 650)
t7.pendown()
t7.begin_fill()
t7.right(80)
t7.forward(200)
t7.right(60)
t7.forward(100)
t7.right(40)
t7.forward(200)
t7.right(170)
t7.forward(200)
t7.left(30)
t7.forward(60)
t7.left(50)
t7.forward(200)
t7.end_fill()
t8 = turtle.Turtle()
t8.pensize(0)
t8.speed(0)
t8.color("white", "white")
t8.penup()
t8.setposition(0,0)
t8.pendown()
t8.begin_fill()
t8.left(5)
t8.forward(120)
t8.right(15)
t8.forward(140)
t8.right(25)
t8.forward(200)
t8.right(45)
t8.forward(300)
t8.right(175)
t8.forward(270)
t8.left(40)
t8.forward(200)
t8.left(15)
t8.forward(120)
t8.left(15)
t8.forward(100)
t8.end_fill()
t3 = turtle.Turtle()
t3.pensize(0)
t3.speed(0)
t3.color("white", "white")
t3.penup()
t3.setposition(-200,550)
t3.pendown()
t3.begin_fill()
t3.circle(20)
t3.end_fill()
t1.hideturtle()
t3.hideturtle()
t2.hideturtle()
t7.hideturtle()
t8.hideturtle()
Comments
Post a Comment