Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- t = turtle.Pen()
- color = "red"
- t.speed(0)
- def dreptunghi(x, y, lungime, latime, culoare):
- t.penup()
- t.goto(x, y)
- t.color(culoare)
- t.pendown()
- t.begin_fill()
- for i in range(1, 3):
- t.forward(lungime)
- t.right(90)
- t.forward(latime)
- t.right(90)
- t.end_fill()
- t.penup()
- #Cap
- dreptunghi(50, 50, 130, 130, "yellow")
- #Ochi
- dreptunghi(70, 20, 15, 15, "black")
- dreptunghi(130, 20, 15, 15, "black")
- #Fata
- dreptunghi(70, 0 , 70, 10, "black")
- dreptunghi(70, 0, 10, 40, "black")
- dreptunghi(70, -40, 70, 10, "black")
- dreptunghi(140, 0, 10, 50, "black")
- #Saliva
- dreptunghi(140, -50, 10, 40, "blue")
- dreptunghi(120, -50, 10, 20, "blue")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement