Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzeig, Seymour Papert and Cynthia Solomon in 1967.
Turtle is a special feathers of Python. Using Turtle, we can easily draw in a drawing board.First we import the turtle module. Then create a window, next we create turtle object and using turtle method we can draw in the drawing board.
Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzeig, Seymour Papert and Cynthia Solomon in 1967.
Turtle is a special feathers of Python. Using Turtle, we can easily draw in a drawing board.First we import the turtle module. Then create a window, next we create turtle object and using turtle method we can draw in the drawing board.
def myBis():
myPosition(-103,291)
right(90)
fillcolor(‘#02d302’)
begin_fill()
right(90)
forward(55)
left(80)
forward(12)
left(10)
forward(17)
left(10)
forward(12)
left(80)
forward(55)
left(80)
forward(12)
left(10)
forward(17)
left(10)
forward(12)
left(80)
left(80)
forward(12)
left(10)
forward(17)
left(10)
forward(12)
end_fill()
penup()
right(100)
forward(20)
right(90)
forward(14)
pendown()
pencolor(‘#9c5e4a’)
fillcolor(‘#9c5e4a’)
begin_fill()
for i in range(5):
forward(15)
right(144)
end_fill()
penup()
forward(27)
left(90)
forward(16)
left(90)
forward(7)
pendown()
fillcolor(‘#9c5e4a’)
begin_fill()
for i in range(5):
forward(10)
right(144)
end_fill()
penup()
forward(20)
right(90)
forward(5)
pendown()
fillcolor(‘#9c5e4a’)
begin_fill()
for i in range(5):
forward(10)
right(144)
end_fill()
penup()
right(180)
forward(6)
pendown()
fillcolor(‘#9c5e4a’)
begin_fill()
for i in range(5):
forward(10)
right(144)
end_fill()
def leftHand2():
myPosition(-112,284)
pencolor(‘black’)
fillcolor(‘#fcc6a0’)
begin_fill()
right(180)
forward(31)
left(90)
for i in range(2):
circle(4,90)
#circle(4//2,45)
for i in range(3):
right(180)
for i in range(2):
circle(4,90)
end_fill()
def myMouth():
myPosition(-25,200)
left(65)
fillcolor(‘#77332e’)
begin_fill()
#circle(20)
#forward(20)
for i in range(2):
circle(25,90)
circle(25//2,90)
end_fill()
def myEyebrow(x,y):
myPosition(x,y)
pensize(18)
right(150)
forward(25)
right(90)
for i in range(1):
right(45)
dot(15)
left(55)
forward(25)
for i in range(1):
right(45)
dot(15)
You must be logged in to post a comment.