import turtle


# Create a new turtle object

t = turtle.Turtle()


# Set the turtle's speed

t.speed(10)


# Draw the head

t.color("red")

t.begin_fill()

t.circle(100)

t.end_fill()


# Draw the hair

t.penup()

t.goto(0, 150)

t.pendown()

t.color("black")

t.begin_fill()

t.circle(70)

t.end_fill()


# Draw the eyes

t.penup()

t.goto(-40, 200)

t.pendown()

t.color("white")

t.begin_fill()

t.circle(15)

t.end_fill()


t.penup()

t.goto(40, 200)

t.pendown()

t.begin_fill()

t.circle(15)

t.end_fill()


t.penup()

t.goto(-35, 200)

t.pendown()

t.color("black")

t.begin_fill()

t.circle(8)

t.end_fill()


t.penup()

t.goto(45, 200)

t.pendown()

t.begin_fill()

t.circle(8)

t.end_fill()


# Hide the turtle when finished

t.hideturtle()


# Keep the window open until closed manually

turtle.done()


ليست هناك تعليقات:

اضافة تعليق

جميع الحقوق محفوظة © 2013 ahmed hassan
تصميم : احمد حسن