Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e9026d4

Browse files
Draw a circle from square
1 parent dca991b commit e9026d4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎python_turtol_graphics/mindstroms.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ def drw_square(some_turtle):
55
some_turtle.forward(100)
66
some_turtle.right(90)
77

8-
98
def draw_art():
109
window = turtle.Screen()
1110
window.bgcolor("red")
1211

13-
#Create the turtle Brad - Draws a square
12+
#Create the turtle Brad - Draws a square
1413
brad = turtle.Turtle()
1514
brad.shape("turtle")
1615
brad.color("yellow")
17-
brad.speed(2)
18-
drw_square(brad)
19-
20-
#Create the turtle Angie - Draws a circle
21-
angie = turtle.Turtle()
22-
angie.shape("arrow")
23-
angie.color("white")
24-
angie.circle(100)
16+
brad.speed(4)
17+
for i in range(1,37):
18+
drw_square(brad)
19+
brad.right(10)
20+
# Create the turtle Angie - Draws a circle
21+
# angie = turtle.Turtle()
22+
# angie.shape("arrow")
23+
# angie.color("white")
24+
# angie.circle(100)
2525
window.exitonclick()
2626

2727
draw_art()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /