Skip to content

Commit 210cb3b

Browse files
committed
heading -> setheading
1 parent a979fcf commit 210cb3b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/turtle_hilbert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def hilbert2(step, rule, angle, depth, t):
3535

3636
turtle = turtle(board.DISPLAY)
3737
turtle.penup()
38-
turtle.heading(90)
38+
turtle.setheading(90)
3939
turtle.goto(-80, -80)
4040
turtle.pendown()
4141
hilbert2(5, "a", 90, 5, turtle)

examples/turtle_overlayed_koch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def snowflake(num_generations, generation_color):
3131
unit= min(board.DISPLAY.width / 3, board.DISPLAY.height / 4)
3232
top_len = unit * 3
3333
print(top_len)
34-
turtle.heading(90)
34+
turtle.setheading(90)
3535

3636
turtle.penup()
3737
turtle.goto(-1.5 * unit, unit)

examples/turtle_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
print("Turtle time! Lets draw a star")
88

99
turtle.pencolor(Color.BLUE)
10-
turtle.heading(90)
10+
turtle.setheading(90)
1111

1212
turtle.penup()
1313
turtle.goto(-starsize/2, 0)

examples/turtle_star.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
print("Turtle time! Lets draw a star")
88

99
turtle.pencolor(Color.BLUE)
10-
turtle.heading(90)
10+
turtle.setheading(90)
1111

1212
turtle.penup()
1313
turtle.goto(-starsize/2, 0)

0 commit comments

Comments
 (0)