creating emoji of jethalal apni programing
import turtle
t=turtle.Turtle()
turtle.bgcolor("purple")
t.color("black","yellow")
def mypos(x,y):
t.penup()
t.goto(x,y)
t.pendown()
mypos(0,-100)
t.begin_fill()
t.circle(150)
t.end_fill()
t.pensize(7)
mypos(-50,80)
t.color("black","white")
t.begin_fill()
t.circle(30)
t.end_fill()
t.pensize(7)
mypos(-50,90)
t.color("black","gray")
t.begin_fill()
t.circle(15)
t.end_fill()
mypos(50,80)
t.color("black","white")
t.begin_fill()
t.circle(30)
t.end_fill()
t.pensize(7)
mypos(50,90)
t.color("black","gray")
t.begin_fill()
t.circle(15)
t.end_fill()
mypos(10,150)
t.left(45)
t.pensize(17)
for i in range(10):
t.right(10)
t.forward(10)
mypos(-10,150)
for i in range(10):
t.left(10)
t.backward(10)
t.pensize(7)
mypos(-50,0)
t.right(45)
t.forward(80)
t.hideturtle()
t.penup()
t.backward((t.getscreen().window_width() / 2) - 5)
message = "whaa\n yaar\ngzb😉 "
t.write(message,move=False, font=('monaco',30,'bold'),align='left')
turtle.done()
s
Comments
Post a Comment