creating emoji using turtle python part 4 using turtle python

 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(10)
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(10)
t.end_fill()


mypos(-100,0)
t.right(60)
t.color("black","white")
t.begin_fill()
for i in range(11):
t.left(10)
t.forward(20)
t.goto(-100,0)
t.end_fill()

t.hideturtle()
t.penup()
t.backward((t.getscreen().window_width() / 2) - 5)
message = "subscribe\nfor more\n videos"

t.write(message,move=False, font=('monaco',30,'bold'),align='left')
turtle.done()

Comments

Popular posts from this blog

creating lord shiva 2 by turtle python apni programming

creating half face lord shiva by python turtle

navratri special turtle python apni programming