MCPcopy Index your code
hub / github.com/geekcomputers/Python / heart_red

Function heart_red

love_turtle.py:4–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def heart_red():
5 t = turtle.Turtle()
6 turtle.title("I Love You")
7 screen = turtle.Screen()
8 screen.bgcolor("white")
9 t.color("red")
10 t.begin_fill()
11 t.fillcolor("red")
12
13 t.left(140)
14 t.forward(180)
15 t.circle(-90, 200)
16
17 t.setheading(60) # t.left
18 t.circle(-90, 200)
19 t.forward(180)
20
21 t.end_fill()
22 t.hideturtle()
23
24 turtle.done()
25
26
27if __name__ == "__main__":

Callers 1

love_turtle.pyFile · 0.85

Calls 4

colorMethod · 0.80
leftMethod · 0.80
doneMethod · 0.80
forwardMethod · 0.45

Tested by

no test coverage detected