Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # t_heart.py
- import turtle
- def draw_heart(n):
- t = turtle.Turtle()
- s = turtle.Screen()
- s.bgcolor('black')
- t.speed(0)
- t.penup()
- t.goto(0, -80 * n)
- t.pendown()
- t.fillcolor("red")
- t.begin_fill()
- t.left(50)
- t.fd(118 * n)
- t.circle(45 * n, 200)
- t.lt(221)
- t.circle(45 * n, 200)
- t.fd(118 * n)
- t.end_fill()
- t.hideturtle()
- draw_heart(3)
- turtle.done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement