creating emoji part 5 using turtle python apni programming


 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(-60,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(40,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.color("black")

t.begin_fill()

t.pensize(7)

mypos(-50,0)

t.left(90)

t.circle(30)

t.end_fill()



t.hideturtle()

t.penup()

t.backward((t.getscreen().window_width() / 2) - 5)

message = "oohh\n bhai\n gzb 😜"


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

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